woohoo (please work i stg)
Some checks failed
Actions / Build Export Files (push) Successful in 7s
Actions / Autotagger (push) Failing after 9s
Actions / Build Documentation (push) Has been cancelled

This commit is contained in:
cswimr 2024-10-21 14:02:30 -04:00
parent e17407bb5f
commit a94611d8ce
Signed by: cswimr
GPG key ID: A9C162E867C851FA

View file

@ -127,9 +127,11 @@ jobs:
- name: Check commit message
id: check_commit_message
shell: bash
run: |
COMMIT_MESSAGE="${{ steps.extract_commit_message.outputs.message }}"
OUTPUT="$(python .forgejo/workflows/scripts/message.py '$COMMIT_MESSAGE')"
ESCAPED_COMMIT_MESSAGE="$(printf '%s\n' "$COMMIT_MESSAGE" | sed -e 's/['"'"'\\&]/\\&/g')"
OUTPUT="$(python .forgejo/workflows/scripts/message.py '$ESCAPED_COMMIT_MESSAGE')"
if [ "$OUTPUT" = "Usage: python message.py <commit_message>" ]; then
echo "Called without commit message!"
exit 1