File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -39,17 +39,18 @@ jobs:
3939 run : |
4040 if [ "${{ github.event_name }}" = "pull_request" ]; then
4141 echo "GitHub event=pull_request"
42- COMMIT_SHA=${{ github.event.pull_request.head.sha }}
43- COMMIT_MESSAGE=$(curl -s \
42+ COMMIT_SHA=" ${{ github.event.pull_request.head.sha }}"
43+ COMMIT_MESSAGE=" $(curl -s \
4444 -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
45- https://api.github.com/repos/${{ github.repository }}/commits/$COMMIT_SHA | jq -r '.commit.message')
45+ https://api.github.com/repos/${{ github.repository }}/commits/$COMMIT_SHA | jq -r '.commit.message')"
4646 echo "Commit message=$COMMIT_MESSAGE" | head -n 1
4747 echo "commit_message=$COMMIT_MESSAGE" | head -n 1 >> $GITHUB_OUTPUT
4848 else
49- echo "GitHub event=${{ github.event_name }}"
50- echo "Commit message=${{ github.event.head_commit.message }}" | head -n 1
51- echo "commit_message=${{ github.event.head_commit.message }}" | head -n 1 >> $GITHUB_OUTPUT
52- fi
49+ echo "GitHub event=${{ github.event_name }}"
50+ COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
51+ echo "Commit message=$COMMIT_MESSAGE" | head -n 1
52+ echo "commit_message=$COMMIT_MESSAGE" | head -n 1 >> $GITHUB_OUTPUT
53+ fi
5354
5455 - name : Get changed files
5556 id : changed-files
You can’t perform that action at this time.
0 commit comments