Skip to content

Commit 7c01919

Browse files
authored
Merge pull request #1133 from kernelkit/ci-fixes
CI: Only build minimal for PRs without ci:main tag
2 parents 6cdcd57 + 17df77c commit 7c01919

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/trigger.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
push:
77
branches:
88
- main
9-
- ci-workflow-redesign
9+
- ci-work
1010
workflow_dispatch:
1111

1212
jobs:
@@ -15,21 +15,21 @@ jobs:
1515
uses: ./.github/workflows/build.yml
1616
with:
1717
name: "infix"
18-
target: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main')) && 'x86_64' || 'x86_64_minimal' }}
18+
target: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:main') && 'x86_64_minimal' || 'x86_64' }}
1919

2020
build-aarch64:
2121
if: startsWith(github.repository, 'kernelkit/')
2222
uses: ./.github/workflows/build.yml
2323
with:
2424
name: "infix"
25-
target: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main')) && 'aarch64' || 'aarch64_minimal' }}
25+
target: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:main') && 'aarch64_minimal' || 'aarch64' }}
2626

2727
test-run-x86_64:
2828
if: startsWith(github.repository, 'kernelkit/')
2929
needs: build-x86_64
3030
uses: ./.github/workflows/test.yml
3131
with:
32-
target: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main')) && 'x86_64' || 'x86_64_minimal' }}
32+
target: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:main') && 'x86_64_minimal' || 'x86_64' }}
3333
name: "infix"
3434

3535
test-publish-x86_64:

0 commit comments

Comments
 (0)