We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26c8df8 + 9fe9e91 commit 35ac5f2Copy full SHA for 35ac5f2
.github/workflows/ci.yml
@@ -123,7 +123,9 @@ jobs:
123
124
- name: Store short commit SHA for filename
125
id: vars
126
- run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
+ env:
127
+ COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
128
+ run: echo "::set-output name=sha_short::${COMMIT_SHA:0:7}"
129
130
- name: Package Extension
131
run: npx vsce package -o rescript-vscode-${{ steps.vars.outputs.sha_short }}.vsix
0 commit comments