Skip to content

Commit

Permalink
ci: Prevent runs if nightly tag exists
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanstipl committed Dec 16, 2020
1 parent c9d1ebf commit 20065e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
id: tag_exists
run: |
set -x
[ "$(git tag -l "${TAG}")" = "${TAG}" ] && exists=true || exists=false
exists=false
[ "$(git tag -l "${TAG}")" = "${TAG}" ] && exists=true
[ "$(git tag -l "nightly-${TAG}")" = "nightly-${TAG}" ] && exists=true
echo "::set-output name=result::${exists}"
env:
TAG: ${{ steps.git_tag.outputs.tag }}
Expand Down

0 comments on commit 20065e6

Please sign in to comment.