Unverified Commit 956636c8 authored by Leah's avatar Leah Committed by GitHub

ci: don't retry or notify on failures from forks (#59118)

### Why?

For some reason the retry action can be triggered if there's a PR from
the canary branch of a fork.
https://github.com/vercel/next.js/actions/runs/7040561852/attempts/3



Closes PACK-2062
parent d605ef61
...@@ -16,7 +16,7 @@ permissions: ...@@ -16,7 +16,7 @@ permissions:
jobs: jobs:
retry-on-failure: retry-on-failure:
name: retry failed jobs name: retry failed jobs
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 3 }} if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 3 && github.repository == 'vercel/next.js' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: send retry request to GitHub API - name: send retry request to GitHub API
...@@ -31,7 +31,7 @@ jobs: ...@@ -31,7 +31,7 @@ jobs:
report-failure: report-failure:
name: report failure to slack name: report failure to slack
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt >= 3 }} if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt >= 3 && github.repository == 'vercel/next.js' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: send webhook - name: send webhook
......
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