Skip to content

Commit e8672f2

Browse files
committed
use git rev-parse
1 parent a6b6806 commit e8672f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
ref: ${{ env.HEAD_COMMIT }}
5050
- name: Get commit message
51-
run: echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s $GITHUB_HEAD_REF)" >> $GITHUB_ENV
51+
run: echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s $(git rev-parse $GITHUB_HEAD_REF))" >> $GITHUB_ENV
5252
- name: "BRANCH: ${{ github.ref_name }}"
5353
run: echo ""
5454
- name: "COMMIT: ${{ env.COMMIT_MESSAGE }}"

0 commit comments

Comments
 (0)