Skip to content

Commit e9ada82

Browse files
committed
Fix commit SHA in artifact name for PR builds
1 parent 5978a8d commit e9ada82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123

124124
- name: Store short commit SHA for filename
125125
id: vars
126-
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
126+
run: echo "::set-output name=sha_short::${${{ github.event.pull_request.head.sha || github.sha }}:0:7}"
127127

128128
- name: Package Extension
129129
run: npx vsce package -o rescript-vscode-${{ steps.vars.outputs.sha_short }}.vsix

0 commit comments

Comments
 (0)