From 9eaf3ad7560dedd28c22fc17417f193d3a7956d1 Mon Sep 17 00:00:00 2001 From: Matthias Wittgen Date: Tue, 27 Aug 2024 14:09:51 -0700 Subject: [PATCH] Skip if no tag defined --- .github/workflows/build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9e3d223..8dac849 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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