Skip to content

Commit 1199e64

Browse files
authored
[ci] Change test to launch ci only if flag: pr run ci is on (#115)
1 parent ef15a73 commit 1199e64

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.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)