Skip to content

Commit

Permalink
put hash in file name
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector committed Dec 19, 2023
1 parent 0c3a12b commit 128514f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ jobs:

- uses: artiz/[email protected]
with:
url: https://pr-${{ github.event.number }}-documentation.appa.pantheon.site/githead.txt
# url: https://pr-${{ GITHUB_PR_NUMBER }} -documentation.appa.pantheon.site/githead.txt
url: https://pr-${{ github.event.number }}-documentation.appa.pantheon.site/githead-${{ github.event.pull_request.head.sha }}.txt
method: GET
expectStatus: 200
expectBodyRegex: ${{ github.event.pull_request.head.sha }}
# expectBodyRegex: ${{ github.event.pull_request.head.sha }}
timeout: 600000
interval: 5000

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
},
"scripts": {

"build": "echo $(git rev-parse HEAD) > static/githead.txt && gatsby build --prefix-paths --log-pages",
"build": "echo 'this is the git commit' $(git rev-parse HEAD) 'for this build' > static/githead-$(git rev-parse HEAD).txt && gatsby build --prefix-paths --log-pages",
"develop": "gatsby develop",
"format": "prettier --write src/**/*.{js,jsx}",
"start": "npm run develop",
Expand Down

0 comments on commit 128514f

Please sign in to comment.