Skip to content

Commit 81abea6

Browse files
authored
crate_universe github actions no longer run on forks (#685)
This github action should not run on forks. This prevents each job from being kicked off in cases where users open a PR from their fork if they make changes on their `main` branch.
1 parent 1b27714 commit 81abea6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/crate_universe.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ defaults:
1515

1616
jobs:
1717
build:
18+
if: ${{ github.repository_owner == bazelbuild }}
1819
runs-on: ${{ matrix.os }}
1920
strategy:
2021
matrix:
@@ -79,6 +80,7 @@ jobs:
7980
path: ${{ github.workspace }}/crate_universe/private/bootstrap/bin/${{ matrix.env.TARGET }}
8081
if-no-files-found: error
8182
release:
83+
if: ${{ github.repository_owner == bazelbuild }}
8284
needs: build
8385
runs-on: ubuntu-latest
8486
steps:

0 commit comments

Comments
 (0)