fixed printf
command
This commit is contained in:
parent
1b8c30dd94
commit
4af2e46d57
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
COMMIT_MESSAGE="${{ steps.extract_commit_message.outputs.message }}"
|
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')"
|
OUTPUT="$(python .forgejo/workflows/scripts/message.py '$ESCAPED_COMMIT_MESSAGE')"
|
||||||
if [ "$OUTPUT" = "Usage: python message.py <commit_message>" ]; then
|
if [ "$OUTPUT" = "Usage: python message.py <commit_message>" ]; then
|
||||||
echo "Called without commit message!"
|
echo "Called without commit message!"
|
||||||
|
|
Reference in a new issue