Skip to content

Commit 296d572

Browse files
committed
.github: add ci:main tag to self trigger
This trigger runs the "main" workflow if the github tag ci:main is specified in the PR. Fixes: #1115 Signed-off-by: Richard Alpe <[email protected]>
1 parent 33c95e8 commit 296d572

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/trigger.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ jobs:
1616
with:
1717
target: "x86_64"
1818
name: "infix"
19-
flavor: "_minimal"
19+
flavor: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main'))
20+
&& fromJSON('null') || '_minimal' }}
2021

2122
build-aarch64:
2223
if: startsWith(github.repository, 'kernelkit/')
2324
uses: ./.github/workflows/build.yml
2425
with:
2526
target: "aarch64"
2627
name: "infix"
27-
flavor: "_minimal"
28+
flavor: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main'))
29+
&& fromJSON('null') || '_minimal' }}
2830

2931
test-run-x86_64:
3032
if: startsWith(github.repository, 'kernelkit/')

0 commit comments

Comments
 (0)