From 4af2e46d575af62c1b59db0a534d7d6fcd7af4d3 Mon Sep 17 00:00:00 2001 From: cswimr Date: Mon, 21 Oct 2024 14:05:15 -0400 Subject: [PATCH] fixed `printf` command --- .forgejo/workflows/actions.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/actions.yaml b/.forgejo/workflows/actions.yaml index fc7e27a..19f0d7f 100644 --- a/.forgejo/workflows/actions.yaml +++ b/.forgejo/workflows/actions.yaml @@ -130,7 +130,7 @@ jobs: shell: bash run: | COMMIT_MESSAGE="${{ steps.extract_commit_message.outputs.message }}" - ESCAPED_COMMIT_MESSAGE="$(printf '%s\n' "$COMMIT_MESSAGE" | sed -e 's/['"'"'\\&]/\\&/g')" + ESCAPED_COMMIT_MESSAGE=$(printf '%a' "$COMMIT_MESSAGE") OUTPUT="$(python .forgejo/workflows/scripts/message.py '$ESCAPED_COMMIT_MESSAGE')" if [ "$OUTPUT" = "Usage: python message.py " ]; then echo "Called without commit message!"