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:
NAHO 2025-01-06 22:39:22 +01:00 committed by GitHub
parent a6b53aa677
commit 284c5b0357
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,10 @@ name: Check
on: # yamllint disable-line rule:truthy
push:
branches:
- master
- release-**
pull_request:
permissions:
contents: read