Skip to content

Commit d9661e1

Browse files
boomanaiden154tstellar
authored andcommitted
[Github] Add repository checks to release-binaries workflow (llvm#84437)
This patch adds repository checks to the release-binaries workflow jobs. People were observing that the job was running on a schedule in their forks. This only happens on old forks, but those probably exist in great number given how prolific LLVM is. This is also good practice anyways, on top of solving the direct problem of these jobs running with the cron schedule on people's forks. (cherry picked from commit 9f5be5f)
1 parent b7e2397 commit d9661e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release-binaries.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
prepare:
3636
name: Prepare to build binaries
3737
runs-on: ubuntu-22.04
38+
if: github.repository == 'llvm/llvm-project'
3839
outputs:
3940
release-version: ${{ steps.vars.outputs.release-version }}
4041
flags: ${{ steps.vars.outputs.flags }}
@@ -85,6 +86,7 @@ jobs:
8586
name: "Fill Cache ${{ matrix.os }}"
8687
needs: prepare
8788
runs-on: ${{ matrix.os }}
89+
if: github.repository == 'llvm/llvm-project'
8890
strategy:
8991
matrix:
9092
os:
@@ -119,6 +121,7 @@ jobs:
119121
- prepare
120122
- fill-cache
121123
runs-on: ${{ matrix.target.runs-on }}
124+
if: github.repository == 'llvm/llvm-project'
122125
strategy:
123126
fail-fast: false
124127
matrix:

0 commit comments

Comments
 (0)