Skip to content

Commit

Permalink
chore: prevent action from running on forks (facebook#4068)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciNyan authored Mar 9, 2023
1 parent 26bab25 commit 3561ef7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- cron: '30 2 * * 1-5'
jobs:
release:
# prevents this action from running on forks
if: github.repository_owner == 'facebook'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ concurrency:

jobs:
integrity:
if: github.repository_owner == 'facebook'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:
- run: npm run build-www

unit:
if: github.repository_owner == 'facebook'
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -72,6 +74,7 @@ jobs:
- run: npm run test-unit

e2e-mac:
if: github.repository_owner == 'facebook'
runs-on: macos-latest
strategy:
matrix:
Expand Down Expand Up @@ -113,6 +116,7 @@ jobs:
retention-days: 7

e2e-linux:
if: github.repository_owner == 'facebook'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -158,6 +162,7 @@ jobs:
retention-days: 7

e2e-windows:
if: github.repository_owner == 'facebook'
runs-on: windows-latest
strategy:
matrix:
Expand Down Expand Up @@ -198,6 +203,7 @@ jobs:
retention-days: 7

e2e-collab-mac:
if: github.repository_owner == 'facebook'
runs-on: macos-latest
strategy:
matrix:
Expand Down Expand Up @@ -235,6 +241,7 @@ jobs:
retention-days: 7

e2e-collab-linux:
if: github.repository_owner == 'facebook'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -276,6 +283,7 @@ jobs:
retention-days: 7

e2e-collab-windows:
if: github.repository_owner == 'facebook'
runs-on: windows-latest
strategy:
matrix:
Expand Down Expand Up @@ -312,6 +320,7 @@ jobs:
retention-days: 7

e2e-prod:
if: github.repository_owner == 'facebook'
runs-on: macos-latest
strategy:
matrix:
Expand Down Expand Up @@ -353,6 +362,7 @@ jobs:
retention-days: 7

e2e-collab-prod:
if: github.repository_owner == 'facebook'
runs-on: macos-latest
strategy:
matrix:
Expand Down

0 comments on commit 3561ef7

Please sign in to comment.