From 23d9e9709aaaa436fafff827c7138a374fca3589 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 11 Mar 2024 21:39:04 -0400 Subject: [PATCH] =?UTF-8?q?use=20bash=20conditionals=20and=20not=20python?= =?UTF-8?q?=20conditionals=20(=F0=9F=92=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .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 148644b..0c78b74 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 + if [[ "$OUTPUT" = "None" ]]; then echo "::set-output name=latest_tag::$(git describe --tags --abbrev=0)" else echo "::set-output name=version::$OUTPUT"