diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 80fce3f..cd870f3 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -129,7 +129,8 @@ jobs: id: check_commit_message run: | COMMIT_MESSAGE="${{ steps.extract_commit_message.outputs.message }}" - OUTPUT="$(python .gitea/workflows/scripts/message.py "$COMMIT_MESSAGE")" + ESCAPED_COMMIT_MESSAGE="$(printf '%q' "$COMMIT_MESSAGE")" + OUTPUT="$(python .forgejo/workflows/scripts/message.py '$ESCAPED_COMMIT_MESSAGE')" if [ "$OUTPUT" = "Usage: python message.py " ]; then echo "Called without commit message!" exit 1