Skip to content

Commit

Permalink
fix: correctly reference variables across jobs in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Feb 14, 2021
1 parent 4cc47bb commit c47d496
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tag-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
jobs:
tag:
runs-on: ubuntu-latest
outputs:
new-tag: ${{ steps.bump-tag.outputs.new }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -23,7 +25,7 @@ jobs:
working-directory: /
run: GO111MODULE=on go get github.com/smlx/ccv
- name: Bump tag if necessary
id: tag
id: bump-tag
run: |
if [ -z $(git tag -l $(ccv)) ]; then
git tag $(ccv)
Expand All @@ -32,7 +34,7 @@ jobs:
fi
release:
needs: tag
if: needs.tag.outputs.new == 'true'
if: needs.tag.outputs.new-tag == 'true'
strategy:
# avoid concurrent goreleaser runs
max-parallel: 1
Expand Down

0 comments on commit c47d496

Please sign in to comment.