Unverified Commit adc81abd authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

report build-and-deploy failures only after retries (#79574)

In #75749 we made a single failure for `build-and-deploy` alert. However
as seen there can be transient failures
([ex1](https://github.com/vercel/next.js/actions/runs/15218556449/job/42809569102),
[ex2](https://github.com/vercel/next.js/actions/runs/15198747807/job/42748740308))

This updates the logic to treat both workflows the same, and alert after
3 retries.
parent 1319be65
...@@ -21,7 +21,6 @@ jobs: ...@@ -21,7 +21,6 @@ jobs:
${{ ${{
github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.conclusion == 'failure' &&
github.repository == 'vercel/next.js' && github.repository == 'vercel/next.js' &&
github.event.workflow.name != 'build-and-deploy' &&
github.event.workflow_run.run_attempt < 3 github.event.workflow_run.run_attempt < 3
}} }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
...@@ -43,7 +42,7 @@ jobs: ...@@ -43,7 +42,7 @@ jobs:
if: >- if: >-
${{ ${{
github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.conclusion == 'failure' &&
(github.event.workflow_run.run_attempt >= 3 || github.event.workflow.name == 'build-and-deploy') && github.event.workflow_run.run_attempt >= 3 &&
!github.event.workflow_run.head_repository.fork !github.event.workflow_run.head_repository.fork
}} }}
runs-on: ubuntu-latest 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