From cdfe12ff47354ec723fa0e0823cc9901ef31bfd8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 11 Mar 2024 21:37:22 -0400 Subject: [PATCH] fixed some stuff with the conditional portion of the autotagger --- .forgejo/workflows/autotagger.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/autotagger.yaml b/.forgejo/workflows/autotagger.yaml index 3a3fd80..148644b 100644 --- a/.forgejo/workflows/autotagger.yaml +++ b/.forgejo/workflows/autotagger.yaml @@ -28,10 +28,10 @@ jobs: run: | COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}") OUTPUT=$(python .forgejo/workflows/scripts/message.py "$COMMIT_MESSAGE") - if [[ $OUTPUT == "Usage: python message.py " ]]; then + if [[ "$OUTPUT" == "Usage: python message.py " ]]; then echo "Called without commit message!" exit 1 - elif [[ $OUTPUT == "None" ]]; then + elif [[ "$OUTPUT" == "None" ]]; then echo "::set-output name=latest_tag::$(git describe --tags --abbrev=0)" else echo "::set-output name=version::$OUTPUT"