Skip to content

Commit 15c75f3

Browse files
committed
fix: use the branch name instead of HEAD
I have no idea why after checkout 'HEAD' sha is not the same as `origin/head_ref` but whatever
1 parent 3828155 commit 15c75f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test_action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Capture commit id
1515
id: capture
1616
run: |
17-
COMMIT_ID=$(git rev-parse HEAD)
17+
COMMIT_ID=$(git rev-parse origin/${{ github.head_ref }})
1818
echo "The sha of the starting commit is $COMMIT_ID"
1919
echo "::set-output name=commit::$COMMIT_ID"
2020
- name: create test commit

0 commit comments

Comments
 (0)