From ddf9a375189fefb9a6a7f1d7e1e6918ce5058d85 Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Tue, 19 Dec 2023 15:13:13 -0600 Subject: [PATCH] trying another combo --- .github/workflows/playwright.yml | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 3e2fb2a971..a8411e7f89 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -34,7 +34,7 @@ jobs: - uses: artiz/poll-endpoint@1.0.2 with: - url: https://pr-${{ github.event.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 expectBody: ${{ github.event.pull_request.head.sha }} @@ -48,6 +48,7 @@ jobs: run: npx playwright install --with-deps + - name: Run Playwright tests run: npx playwright test - uses: actions/upload-artifact@v3 diff --git a/package.json b/package.json index 3657fec823..91f7b1e78c 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ }, "scripts": { - "build": "echo $(git rev-parse HEAD) > static/githead.txt && gatsby build --prefix-paths --log-pages", + "build": "echo $(git rev-parse HEAD) > 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",