From a94611d8ce0cee69dc95acbf88a05ebd33a53d73 Mon Sep 17 00:00:00 2001 From: cswimr Date: Mon, 21 Oct 2024 14:02:30 -0400 Subject: [PATCH] woohoo (please work i stg) --- .gitea/workflows/actions.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 78189ab..fc7e27a 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -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 " ]; then echo "Called without commit message!" exit 1