use bash conditionals and not python conditionals (💀)
This commit is contained in:
parent
cdfe12ff47
commit
23d9e9709a
1 changed files with 2 additions and 2 deletions
|
@ -28,10 +28,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}")
|
COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}")
|
||||||
OUTPUT=$(python .forgejo/workflows/scripts/message.py "$COMMIT_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!"
|
echo "Called without commit message!"
|
||||||
exit 1
|
exit 1
|
||||||
elif [[ "$OUTPUT" == "None" ]]; then
|
if [[ "$OUTPUT" = "None" ]]; then
|
||||||
echo "::set-output name=latest_tag::$(git describe --tags --abbrev=0)"
|
echo "::set-output name=latest_tag::$(git describe --tags --abbrev=0)"
|
||||||
else
|
else
|
||||||
echo "::set-output name=version::$OUTPUT"
|
echo "::set-output name=version::$OUTPUT"
|
||||||
|
|
Reference in a new issue