Skip to content

Commit 362560b

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

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
node-version: 18
1212
cache: 'npm'
1313
- name: Get Commit Hash and generate Version File
14-
run: echo "$(git rev-parse --short HEAD)" >> public/hash.txt
14+
run: echo "${{ github.event.pull_request.head.sha }}" >> public/hash.txt
1515
- name: Run install
1616
run: npm ci
1717
- name: Build

.github/workflows/validate.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ jobs:
8282
- uses: actions/setup-node@v3
8383
with:
8484
node-version: 18
85+
- name: Check for hash.txt file
86+
run: |
87+
if [ -f public/hash.txt ]; then
88+
echo "File hash.txt exists."
89+
else
90+
echo "Error: hash.txt file is missing!"
91+
exit 1
92+
fi
8593
- name: Run install
8694
run: npm ci
8795
- run: npx playwright install

0 commit comments

Comments
 (0)