use ${{}} instead of $() and print the commit message to stdout
Some checks failed
Actions / Build Export Files (push) Successful in 7s
Actions / Autotagger (push) Successful in 11s
Actions / Build Documentation (push) Failing after 2m38s

This commit is contained in:
cswimr 2024-10-21 14:28:14 -04:00
parent 9fa52319d9
commit 76411ff9bb
Signed by: cswimr
GPG key ID: A9C162E867C851FA

View file

@ -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