Skip to content

Commit

Permalink
Merge pull request #18 from smlx/workflow-fix
Browse files Browse the repository at this point in the history
Fix tag-and-release workflow
  • Loading branch information
smlx authored Feb 14, 2021
2 parents 4cc47bb + c47d496 commit 8204045
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 8204045

Please sign in to comment.