-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): split PR workflow into two to handle events separately
- Loading branch information
1 parent
275d5cd
commit 78edf05
Showing
2 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This workflow checks and tests the package code, and it builds all package | ||
# artifacts whenever there were changes to a pull request. | ||
|
||
name: 'Pull Request: change set' | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- staging | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
||
# If the build workflow needs to access secrets, they need to be passed using `secrets: inherit`. | ||
# See https://docs.github.com/en/actions/using-workflows/reusing-workflows to learn more. | ||
# See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions | ||
# for the security recommendations. | ||
build: | ||
uses: ./.github/workflows/build.yaml | ||
permissions: | ||
contents: read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters