File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,15 @@ jobs:
47
47
uses : actions/checkout@v2
48
48
with :
49
49
ref : ${{ env.HEAD_COMMIT }}
50
- fetch-depth : 5
50
+ fetch-depth : 2
51
+ - name : Get PR head SHA
52
+ run : echo "HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
51
53
- name : Setup tmate session
52
54
uses : mxschmitt/action-tmate@v3
53
55
- name : Get commit message
54
56
run : |
55
57
git rev-parse $GITHUB_HEAD_REF
56
- echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s $(git rev-parse $GITHUB_HEAD_REF) )" >> $GITHUB_ENV
58
+ echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s ${{ github.event.pull_request.head.sha }} )" >> $GITHUB_ENV
57
59
- name : " BRANCH: ${{ github.ref_name }}"
58
60
run : echo ""
59
61
- name : " COMMIT: ${{ env.COMMIT_MESSAGE }}"
You can’t perform that action at this time.
0 commit comments