From 9fa52319d9271d18c67e933db4407e3309d869d2 Mon Sep 17 00:00:00 2001 From: cswimr Date: Mon, 21 Oct 2024 14:26:12 -0400 Subject: [PATCH] use `bash` when relying on `bash` features --- .forgejo/workflows/actions.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/actions.yaml b/.forgejo/workflows/actions.yaml index 6a528c2..92533ed 100644 --- a/.forgejo/workflows/actions.yaml +++ b/.forgejo/workflows/actions.yaml @@ -123,6 +123,7 @@ jobs: - name: Extract commit message id: extract_commit_message + shell: bash # `@Q` is bash exclusive run: | COMMIT_MESSAGE=$(git log --format=%B -n 1 $GITHUB_SHA) ESCAPED_COMMIT_MESSAGE="${COMMIT_MESSAGE@Q}" @@ -130,10 +131,9 @@ 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@Q}")" + OUTPUT="$(python .forgejo/workflows/scripts/message.py "${COMMIT_MESSAGE}")" if [ "$OUTPUT" = "Usage: python message.py " ]; then echo "Called without commit message!" exit 1