Skip to content

Commit 35ac5f2

Browse files
authoredJul 24, 2022
Merge pull request #505 from cknitt/fix-commit-sha
Fix commit SHA in artifact name for PR builds
2 parents 26c8df8 + 9fe9e91 commit 35ac5f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎.github/workflows/ci.yml

+3-1
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)