Skip to content

Commit 86f48f9

Browse files
committed
fix: fix hash.txt issue from build.yaml
1 parent 1a5b121 commit 86f48f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build
22
on: pull_request
33

4+
45
jobs:
56
build:
67
runs-on: ubuntu-latest
@@ -11,7 +12,7 @@ jobs:
1112
node-version: 18
1213
cache: 'npm'
1314
- name: Get Commit Hash and generate Version File
14-
run: echo "$(git rev-parse --short HEAD)" >> public/hash.txt
15+
run: echo "${{ github.event.pull_request.head.sha }}" >> public/hash.txt
1516
- name: Run install
1617
run: npm ci
1718
- name: Build

0 commit comments

Comments
 (0)