Skip to content

Commit 9fe9e91

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ 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+
env:
127+
COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
128+
run: echo "::set-output name=sha_short::${COMMIT_SHA:0:7}"
127129

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

0 commit comments

Comments
 (0)