Unverified Commit df0573a4 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

Report build-and-deploy failures (#75749)

parent 36af399c
......@@ -2,7 +2,7 @@ name: retry-tests
on:
workflow_run:
workflows: ['build-and-test']
workflows: ['build-and-test', 'build-and-deploy']
branches: [canary]
types:
- completed
......@@ -21,6 +21,7 @@ jobs:
${{
github.event.workflow_run.conclusion == 'failure' &&
github.repository == 'vercel/next.js' &&
github.event.workflow.name != 'build-and-deploy' &&
github.event.workflow_run.run_attempt < 3
}}
runs-on: ubuntu-latest
......@@ -38,10 +39,11 @@ jobs:
report-failure:
name: report failure to slack
# Report the failure to Slack if the build-and-test workflow has failed 3 times
# build-and-deploy is not retried so we always report it
if: >-
${{
github.event.workflow_run.conclusion == 'failure' &&
github.event.workflow_run.run_attempt >= 3 &&
(github.event.workflow_run.run_attempt >= 3 || github.event.workflow.name == 'build-and-deploy') &&
!github.event.workflow_run.head_repository.fork
}}
runs-on: ubuntu-latest
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment