Skip to content

Commit 1d30fcc

Browse files
committed
ci: wrong assumption, better label naming
1 parent b6f4134 commit 1d30fcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444
- "1.85" # MSRV (Minimum supported rust version)
4545
- stable
4646
isPR:
47-
- ${{ github.event.pull_request }}
47+
- ${{ github.event_name == 'pull_request' }}
4848
isCIWindows:
49-
- ${{ github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'CI:Windows') }}
49+
- ${{ github.event.pull_request && contains(github.event.pull_request.labels.*.name, format('CI{0} Windows', ':')) }}
5050
exclude:
51-
# excludes windows in a PR by default, unless labeled with 'CI:Windows'
51+
# excludes windows in a PR by default, unless labeled with 'CI: Windows'
5252
- os: 'windows-latest'
5353
isPR: true
5454
isCIWindows: false

0 commit comments

Comments
 (0)