-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (33 loc) · 1.13 KB
/
playwright-screenshots.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Update Playwright screenshots
on:
workflow_dispatch:
env:
TURBO_TOKEN: ${{ secrets.TURBO_REMOTE_CACHE__TURBO_TOKEN }}
jobs:
screenshots:
uses: ./.github/workflows/playwright.yml
secrets: inherit
with:
update-snapshots: true
# Download screenshots from all shards and create a pull request
pr:
name: Create pull request
runs-on: ubuntu-latest
needs: screenshots
steps:
- uses: actions/checkout@v4
- name: Download screenshots
uses: actions/download-artifact@v4
with:
pattern: screenshots
merge-multiple: true
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "chore: update Playwright screenshots"
title: "chore: update Playwright screenshots"
body: This is an auto-generated pull request. All Playwright screenshots have been updated.
branch-suffix: short-commit-hash # needed to not override other pull requests created via workflows
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: ${{ github.ref_name }}