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:
39
39
run : |
40
40
if [ "${{ github.event_name }}" = "pull_request" ]; then
41
41
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 \
44
44
-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')"
46
46
echo "Commit message=$COMMIT_MESSAGE" | head -n 1
47
47
echo "commit_message=$COMMIT_MESSAGE" | head -n 1 >> $GITHUB_OUTPUT
48
48
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
53
54
54
55
- name : Get changed files
55
56
id : changed-files
You can’t perform that action at this time.
0 commit comments