Skip to content

Commit 82d67b3

Browse files
committed
Add issue creation step for nightly workflow failures in Playwright CI
1 parent 05d956e commit 82d67b3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/web-starter-playwright.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,16 @@ jobs:
8383
working-directory: web-starter/web/nextjs
8484
run: |
8585
yarn test:e2e
86+
87+
- name: Create issue on failure (nightly)
88+
if: failure() && github.event_name == 'schedule'
89+
uses: actions/github-script@v6
90+
with:
91+
script: |
92+
github.issues.create({
93+
owner: context.repo.owner,
94+
repo: context.repo.repo,
95+
title: '[Nightly] Web-starter Playwright workflow failed',
96+
body: `The nightly Web-starter Playwright workflow failed. Please investigate.\n\n/cc @noir-lang/developerrelations`,
97+
labels: ['nightly', 'bug']
98+
})

0 commit comments

Comments
 (0)