Unverified Commit f5c8b6ae authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

[ci] Don't retry/notify for failed deploy tests with custom tarball URLs (#88576)

Fixes a regression from #85981 where manual deploy tests with custom
tarball URLs incorrectly trigger retries and Slack notifications. Now
only release-triggered runs and manually-triggered canary tests are
retried/reported.
parent 8d7682f1
...@@ -18,7 +18,10 @@ jobs: ...@@ -18,7 +18,10 @@ jobs:
# Retry the test-e2e-deploy-release workflow once # Retry the test-e2e-deploy-release workflow once
if: >- if: >-
${{ ${{
startsWith(github.event.workflow_run.display_title, 'test-e2e-deploy') && (
github.event.workflow_run.event == 'release' ||
github.event.workflow_run.display_title == 'test-e2e-deploy canary'
) &&
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_run.run_attempt < 2 github.event.workflow_run.run_attempt < 2
...@@ -40,7 +43,10 @@ jobs: ...@@ -40,7 +43,10 @@ jobs:
# Report the failure to Slack if the test-e2e-deploy-release workflow has failed 2 times # Report the failure to Slack if the test-e2e-deploy-release workflow has failed 2 times
if: >- if: >-
${{ ${{
startsWith(github.event.workflow_run.display_title, 'test-e2e-deploy') && (
github.event.workflow_run.event == 'release' ||
github.event.workflow_run.display_title == 'test-e2e-deploy canary'
) &&
github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.conclusion == 'failure' &&
github.event.workflow_run.run_attempt >= 2 && github.event.workflow_run.run_attempt >= 2 &&
!github.event.workflow_run.head_repository.fork !github.event.workflow_run.head_repository.fork
......
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