Skip to content

Commit 30c3c99

Browse files
authored
[ci] Change test to launch ci only if flag: pr run ci is on
1 parent 941271e commit 30c3c99

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@ jobs:
1414
name: Run on ${{ matrix.os }} with SOFA ${{ matrix.sofa_branch }}
1515
if: >
1616
github.event_name == 'push' ||
17-
contains(github.event.pull_request.labels.*.name, 'pr: run ci')
17+
(
18+
github.event_name == 'pull_request' &&
19+
(
20+
contains(github.event.pull_request.labels.*.name, 'pr: run ci') &&
21+
(
22+
github.event.action != 'labeled' ||
23+
github.event.label.name == 'pr: run ci'
24+
)
25+
)
26+
)
1827
runs-on: ${{ matrix.os }}
1928
strategy:
2029
fail-fast: false

0 commit comments

Comments
 (0)