Skip to content

Commit

Permalink
ci: skip cron workflows on forks (#60422)
Browse files Browse the repository at this point in the history
This PR skips running cron workflows outside of `vercel/next.js`

---------

Co-authored-by: Steven <[email protected]>
  • Loading branch information
AhmedBaset and styfle authored Jan 9, 2024
1 parent 84aeded commit 967784b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test_e2e_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
build:
if: github.repository_owner == 'vercel'
runs-on: ubuntu-latest

env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/trigger_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ env:

jobs:
start:
if: github.repository_owner == 'vercel'
runs-on: ubuntu-latest
env:
NEXT_TELEMETRY_DISABLED: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/turbo-daily-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
# Trigger actual next.js integration tests.
next_js_integration:
name: Execute Next.js integration workflow
if: github.repository_owner == 'vercel'
permissions:
pull-requests: write
uses: ./.github/workflows/nextjs-integration-test.yml
Expand All @@ -28,6 +29,6 @@ jobs:
upload_test_results:
name: Upload test results
needs: [next_js_integration]
if: ${{ github.event_name == 'schedule' }} && always()
if: github.repository_owner == 'vercel' && ${{ github.event_name == 'schedule' }} && always()
uses: ./.github/workflows/upload-nextjs-integration-test-results.yml
secrets: inherit

0 comments on commit 967784b

Please sign in to comment.