Skip to content

Commit

Permalink
Trigger certain GHA checks on PR by types not by branch (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkytony committed Apr 19, 2024
1 parent 027d774 commit 7eeb653
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ on:
push:
branches: [ main, dev-latest ]
pull_request:
branches: [ main, dev-latest ]
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
- ready_for_review

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ on:
branches:
- main
pull_request:
branches:
- main
- dev-latest
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
- ready_for_review

jobs:
pre-commit:
runs-on: ubuntu-latest
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ on:
push:
branches: [ "main", "dev-latest" ]
pull_request:
branches: [ "main", "dev-latest" ]
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
- ready_for_review

jobs:
build:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ on:
push:
branches: [ main, dev-latest ]
pull_request:
branches: [ main, dev-latest ]
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
- ready_for_review

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down

0 comments on commit 7eeb653

Please sign in to comment.