Skip to content

Commit 0f9f518

Browse files
committed
fix retreiving short sha
1 parent eb45ca1 commit 0f9f518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,8 @@ jobs:
509509
510510
- name: Install ReScript package
511511
run: |
512-
COMMIT_SHA="$(git rev-parse --short HEAD)"
513-
npm i --no-audit "https://pkg.pr.new/rescript-lang/rescript@$COMMIT_SHA"
512+
COMMIT_SHA="${{ github.sha }}"
513+
npm i --no-audit "https://pkg.pr.new/rescript-lang/rescript@${COMMIT_SHA::7}"
514514
shell: bash
515515
working-directory: ${{ steps.tmp-dir.outputs.path }}
516516

0 commit comments

Comments
 (0)