Skip to content

Commit 9a75122

Browse files
committed
chore: ci detect 'always' label
1 parent 0f20c6c commit 9a75122

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ name: main
55

66
on:
77
pull_request:
8+
types: [ labeled, opened, synchronize, reopened ]
89
merge_group:
910

1011
jobs:
@@ -25,7 +26,7 @@ jobs:
2526
with: { clang-format-version: "18" }
2627

2728
test-windows:
28-
if: github.event_name == 'merge_group'
29+
if: github.event_name == 'merge_group' || contains(github.event.pull_request.labels.*.name, 'ci:always')
2930
runs-on: windows-latest
3031
steps:
3132
- uses: actions/cache@v4
@@ -41,7 +42,7 @@ jobs:
4142
working-directory: test
4243

4344
test-linux:
44-
if: github.event_name == 'merge_group'
45+
if: github.event_name == 'merge_group' || contains(github.event.pull_request.labels.*.name, 'ci:always')
4546
runs-on: ubuntu-latest
4647
steps:
4748
- uses: actions/cache@v4

0 commit comments

Comments
 (0)