use parameter transformation instead of printf
Some checks failed
Actions / Build Export Files (push) Successful in 6s
Actions / Autotagger (push) Failing after 9s
Actions / Build Documentation (push) Failing after 2m37s

This commit is contained in:
cswimr 2024-10-21 14:10:45 -04:00
parent b8e4515179
commit 135c9dad86
Signed by: cswimr
GPG key ID: A9C162E867C851FA

View file

@ -130,8 +130,7 @@ jobs:
shell: bash
run: |
COMMIT_MESSAGE="${{ steps.extract_commit_message.outputs.message }}"
ESCAPED_COMMIT_MESSAGE=$(printf '%q' "$COMMIT_MESSAGE")
OUTPUT="$(python .forgejo/workflows/scripts/message.py '$ESCAPED_COMMIT_MESSAGE')"
OUTPUT="$(python .forgejo/workflows/scripts/message.py "${ESCAPED_COMMIT_MESSAGE@Q}")"
if [ "$OUTPUT" = "Usage: python message.py <commit_message>" ]; then
echo "Called without commit message!"
exit 1