Skip to content

Commit

Permalink
Skip if no tag defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Wittgen committed Aug 27, 2024
1 parent d35b1d5 commit b212a1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ jobs:
current_tag=${GITHUB_REF#refs/tags/}
current_sha=$(git rev-list -1 "$current_tag")
echo "Current tag ${current_tag} (${current_sha})"
if [ "$current_sha" = "$prev_sha" ]; then
echo "Hashes are identical - Skipping upload"
if [ -z ${current_tag} ] || [ "$current_sha" = "$prev_sha" ]; then
echo "Skip upload"
echo "skip=true" >> "$GITHUB_ENV"
else
echo "Hashes differ - Enable upload"
echo "Enable upload"
echo "skip=false" >> "$GITHUB_ENV"
fi
Expand Down

0 comments on commit b212a1c

Please sign in to comment.