ci: run CI on PRs and limit push event to protected branches (#751)
Run the CI on PRs, while preventing it from running twice for non-fork
PRs by limiting the push event to protected branches. [1]
This restores the workflow trigger that was accidentally modified in
commit 2b85a56235 ("ci: simplify workflows").
[1]: https://github.com/danth/stylix/pull/749#issuecomment-2573437938
This commit is contained in:
parent
a6b53aa677
commit
284c5b0357
1 changed files with 4 additions and 0 deletions
4
.github/workflows/check.yml
vendored
4
.github/workflows/check.yml
vendored
|
|
@ -3,6 +3,10 @@ name: Check
|
|||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- release-**
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue