Skip to content

Commit 8dc4ab5

Browse files
committed
[ci] Add new strategy to run ci on branch only if label to review is present
1 parent bfbaaa1 commit 8dc4ab5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ on:
44
push:
55
branches:
66
- main
7-
workflow_dispatch:
7+
- master
8+
9+
pull_request:
10+
types: [opened, synchronize, reopened, labeled]
811

912
jobs:
1013
build-and-test:
1114
name: Run on ${{ matrix.os }} with SOFA ${{ matrix.sofa_branch }}
15+
if: >
16+
github.event_name == 'push' ||
17+
contains(github.event.pull_request.labels.*.name, 'pr: status to review')
1218
runs-on: ${{ matrix.os }}
1319
strategy:
1420
fail-fast: false

0 commit comments

Comments
 (0)