use bash conditionals and not python conditionals (💀)
Some checks failed
Build / Export Files (push) Waiting to run
Autotagger / Autotagger (push) Failing after 3s
Build / Documentation (push) Has been cancelled

This commit is contained in:
SeaswimmerTheFsh 2024-03-11 21:39:04 -04:00
parent cdfe12ff47
commit 23d9e9709a
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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 <commit_message>" ]]; then
if [[ "$OUTPUT" = "Usage: python message.py <commit_message>" ]]; 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"