Skip to content

Commit 31be200

Browse files
committed
hack: fix flavor
Signed-off-by: Richard Alpe <[email protected]>
1 parent ce7cf61 commit 31be200

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/trigger.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,25 @@ on:
99
- ci-workflow-redesign
1010
workflow_dispatch:
1111

12+
env:
13+
BUILD_FLAVOR: ${{ ((github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main')) || (github.event_name == 'push' && github.ref_name == 'main')) && '' || '_minimal' }}
14+
1215
jobs:
1316
build-x86_64:
1417
if: startsWith(github.repository, 'kernelkit/')
1518
uses: ./.github/workflows/build.yml
1619
with:
1720
target: "x86_64"
1821
name: "infix"
19-
flavor: ${{ (
20-
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main'))
21-
|| (github.event_name == 'push' && github.ref_name == 'main')
22-
) && fromJSON('null') || '_minimal' }}
22+
flavor: ${{ env.BUILD_FLAVOR }}
2323

2424
build-aarch64:
2525
if: startsWith(github.repository, 'kernelkit/')
2626
uses: ./.github/workflows/build.yml
2727
with:
2828
target: "aarch64"
2929
name: "infix"
30-
flavor: ${{ (
31-
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main'))
32-
|| (github.event_name == 'push' && github.ref_name == 'main')
33-
) && fromJSON('null') || '_minimal' }}
30+
flavor: ${{ env.BUILD_FLAVOR }}
3431

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

0 commit comments

Comments
 (0)