Skip to content

Commit

Permalink
check whole body, not regex
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector committed Dec 19, 2023
1 parent 128514f commit 38c248a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
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 }}
expectBody: ${{ github.event.pull_request.head.sha }}
#expectBodyRegex: "git commit"
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 '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",
"build": "echo $(git rev-parse HEAD) > static/githead.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 38c248a

Please sign in to comment.