Skip to content

Commit 485d865

Browse files
authored
Merge branch 'master' into new_ci
2 parents be7bf4b + 1199e64 commit 485d865

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,28 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- master
8+
9+
pull_request:
10+
types: [opened, synchronize, reopened, labeled]
511

612
jobs:
713
build-and-test:
814
name: Run on ${{ matrix.os }} with SOFA ${{ matrix.sofa_branch }}
15+
if: >
16+
github.event_name == 'push' ||
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+
)
927
runs-on: ${{ matrix.os }}
1028
strategy:
1129
fail-fast: false

0 commit comments

Comments
 (0)