File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ jobs:
4343 COMMIT_MESSAGE="$(curl -s \
4444 -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
4545 https://api.github.com/repos/${{ github.repository }}/commits/$COMMIT_SHA | jq -r '.commit.message')"
46- echo "Commit message=$(printf "%q " "$COMMIT_MESSAGE")" | head -n 1
47- echo "commit_message=$(printf "%q " "$COMMIT_MESSAGE")" | head -n 1 >> $GITHUB_OUTPUT
46+ echo "Commit message=$(printf "%s " "$COMMIT_MESSAGE")" | head -n 1
47+ echo "commit_message=$(printf "%s " "$COMMIT_MESSAGE")" | head -n 1 >> $GITHUB_OUTPUT
4848 else
4949 echo "GitHub event=${{ github.event_name }}"
5050 COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
51- echo "Commit message=$(printf "%q " "$COMMIT_MESSAGE")" | head -n 1
52- echo "commit_message=$(printf "%q " "$COMMIT_MESSAGE")" | head -n 1 >> $GITHUB_OUTPUT
51+ echo "Commit message=$(printf "%s " "$COMMIT_MESSAGE")" | head -n 1
52+ echo "commit_message=$(printf "%s " "$COMMIT_MESSAGE")" | head -n 1 >> $GITHUB_OUTPUT
5353 fi
5454
5555 - name : Setup env
You can’t perform that action at this time.
0 commit comments