From 6be8ef960156366cc0f82c5c2701f8dfffb3723e Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:39:22 +0100 Subject: [PATCH] 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 2b85a562355c ("ci: simplify workflows"). [1]: https://github.com/danth/stylix/pull/749#issuecomment-2573437938 (cherry picked from commit 284c5b03578eecbf3c680392ea7d0506834adc6b) --- .github/workflows/check.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e3d3f4536..f693192f0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -3,6 +3,10 @@ name: Check on: # yamllint disable-line rule:truthy push: + branches: + - master + - release-** + pull_request: permissions: contents: read