use ${{}}
instead of $()
and print the commit message to stdout
This commit is contained in:
parent
9fa52319d9
commit
76411ff9bb
1 changed files with 2 additions and 1 deletions
|
@ -127,6 +127,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
COMMIT_MESSAGE=$(git log --format=%B -n 1 $GITHUB_SHA)
|
COMMIT_MESSAGE=$(git log --format=%B -n 1 $GITHUB_SHA)
|
||||||
ESCAPED_COMMIT_MESSAGE="${COMMIT_MESSAGE@Q}"
|
ESCAPED_COMMIT_MESSAGE="${COMMIT_MESSAGE@Q}"
|
||||||
|
echo "Commit message: $ESCAPED_COMMIT_MESSAGE"
|
||||||
echo "message=$ESCAPED_COMMIT_MESSAGE" >> $GITHUB_OUTPUT
|
echo "message=$ESCAPED_COMMIT_MESSAGE" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Check commit message
|
- name: Check commit message
|
||||||
|
@ -155,7 +156,7 @@ jobs:
|
||||||
- name: Update latest tag
|
- name: Update latest tag
|
||||||
if: steps.check_commit_message.outputs.latest_tag != ''
|
if: steps.check_commit_message.outputs.latest_tag != ''
|
||||||
run: |
|
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 }}"
|
LATEST_TAG="${{ steps.check_commit_message.outputs.latest_tag }}"
|
||||||
git tag -fs $LATEST_TAG -m "$COMMIT_MESSAGE"
|
git tag -fs $LATEST_TAG -m "$COMMIT_MESSAGE"
|
||||||
git push origin $LATEST_TAG --force
|
git push origin $LATEST_TAG --force
|
||||||
|
|
Reference in a new issue