Skip to content

Commit 7eeb653

Browse files
authored
Trigger certain GHA checks on PR by types not by branch (#69)
1 parent 027d774 commit 7eeb653

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

.github/workflows/macos.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ on:
44
push:
55
branches: [ main, dev-latest ]
66
pull_request:
7-
branches: [ main, dev-latest ]
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
- labeled
12+
- unlabeled
13+
- ready_for_review
814

915
concurrency:
1016
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/pre_commit.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ on:
55
branches:
66
- main
77
pull_request:
8-
branches:
9-
- main
10-
- dev-latest
8+
types:
9+
- opened
10+
- reopened
11+
- synchronize
12+
- labeled
13+
- unlabeled
14+
- ready_for_review
15+
1116
jobs:
1217
pre-commit:
1318
runs-on: ubuntu-latest

.github/workflows/python-package.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
push:
88
branches: [ "main", "dev-latest" ]
99
pull_request:
10-
branches: [ "main", "dev-latest" ]
10+
types:
11+
- opened
12+
- reopened
13+
- synchronize
14+
- labeled
15+
- unlabeled
16+
- ready_for_review
1117

1218
jobs:
1319
build:

.github/workflows/ubuntu.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ on:
44
push:
55
branches: [ main, dev-latest ]
66
pull_request:
7-
branches: [ main, dev-latest ]
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
- labeled
12+
- unlabeled
13+
- ready_for_review
814

915
concurrency:
1016
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

0 commit comments

Comments
 (0)