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 5912090 commit 9eaf3ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
prev_sha=$(git rev-list -1 "$prev_tag")
echo "Previous tag ${prev_tag} (${prev_sha})"
current_tag=${GITHUB_REF#refs/tags/}
if [ -z "$current_tag" ]; then
echo "Current reference: ${current_tag}"
if [ -z "${current_tag}" ]; then
echo "Current ref is not a tag, skipping upload."
echo "skip=true" >> "$GITHUB_ENV"
exit 0
Expand Down

0 comments on commit 9eaf3ad

Please sign in to comment.