Skip to content

Commit

Permalink
Fix for baseline update
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk committed Aug 9, 2024
1 parent 2eb08f4 commit 5cec583
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Start server (in background)
run: npm run start &

- name: Test with Lost Pixel
- name: Check for unintentional UI changes with Lost Pixel
id: lp
uses: lost-pixel/lost-pixel@v3.16.0

Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/update-lost-pixel-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ jobs:
uses: lost-pixel/lost-pixel@v3.8.0
env:
LOST_PIXEL_MODE: update

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
id: cpr
uses: peter-evans/create-pull-request@v6
if: ${{ failure() && steps.lp.conclusion == 'failure' }}
with:
path: ./
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
commit-message: Update lost-pixel baselines
committer: openactive-bot <openactive-bot@users.noreply.github.com>
Expand All @@ -41,7 +44,13 @@ jobs:
branch: 'lost-pixel-update/${{ github.ref_name }}'
delete-branch: true
title: 'Lost Pixel update - ${{ github.ref_name }}'
body: Automated baseline update PR created by Lost Pixel
body: |
Automated baseline update PR created by Lost Pixel
labels: |
automated pr
draft: false
draft: false

- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

0 comments on commit 5cec583

Please sign in to comment.