Skip to content

Commit 3d100fe

Browse files
committed
.github: only run main workflow on kernelkit/
Avoid trying to run on forks, which most likely will cause erros and other ugliness. Signed-off-by: Richard Alpe <[email protected]>
1 parent aefdcb2 commit 3d100fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/trigger.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Self Trigger
1+
name: Kernelkit Trigger
22

33
on:
44
pull_request:
@@ -11,27 +11,31 @@ on:
1111

1212
jobs:
1313
build-x86_64:
14+
if: startsWith(github.repository, 'kernelkit/')
1415
uses: ./.github/workflows/build.yml
1516
with:
1617
target: "x86_64"
1718
name: "infix"
1819
flavor: "_minimal"
1920

2021
build-aarch64:
22+
if: startsWith(github.repository, 'kernelkit/')
2123
uses: ./.github/workflows/build.yml
2224
with:
2325
target: "aarch64"
2426
name: "infix"
2527
flavor: "_minimal"
2628

2729
test-run-x86_64:
30+
if: startsWith(github.repository, 'kernelkit/')
2831
needs: build-x86_64
2932
uses: ./.github/workflows/test.yml
3033
with:
3134
target: "x86_64"
3235
name: "infix"
3336

3437
test-publish-x86_64:
38+
if: startsWith(github.repository, 'kernelkit/')
3539
needs: test-run-x86_64
3640
uses: ./.github/workflows/publish.yml
3741

0 commit comments

Comments
 (0)