From 76411ff9bbc6c25ee22d6d99570e7532ac1c6dcd Mon Sep 17 00:00:00 2001 From: cswimr Date: Mon, 21 Oct 2024 14:28:14 -0400 Subject: [PATCH] use `${{}}` instead of `$()` and print the commit message to stdout --- .forgejo/workflows/actions.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/actions.yaml b/.forgejo/workflows/actions.yaml index 92533ed..2793a9f 100644 --- a/.forgejo/workflows/actions.yaml +++ b/.forgejo/workflows/actions.yaml @@ -127,6 +127,7 @@ jobs: run: | COMMIT_MESSAGE=$(git log --format=%B -n 1 $GITHUB_SHA) ESCAPED_COMMIT_MESSAGE="${COMMIT_MESSAGE@Q}" + echo "Commit message: $ESCAPED_COMMIT_MESSAGE" echo "message=$ESCAPED_COMMIT_MESSAGE" >> $GITHUB_OUTPUT - name: Check commit message @@ -155,7 +156,7 @@ jobs: - name: Update latest tag if: steps.check_commit_message.outputs.latest_tag != '' run: | - COMMIT_MESSAGE="$(steps.extract_commit_message.outputs.message)" + COMMIT_MESSAGE="${{ steps.extract_commit_message.outputs.message }}" LATEST_TAG="${{ steps.check_commit_message.outputs.latest_tag }}" git tag -fs $LATEST_TAG -m "$COMMIT_MESSAGE" git push origin $LATEST_TAG --force