From 8724129dc862432dc5e5c548f1af48f38c4368c4 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Tue, 22 Oct 2024 14:07:25 +1100 Subject: [PATCH] ci: don't run tests twice for PRs from forks By only triggering on pushes to `master`, when users push to non-`master` branches on forks, this workflow won't get triggered and will only get triggered when users make a PR to the main repo. --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6583817f..f375aa8d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,8 @@ name: "Test" on: pull_request: push: + branches: + - master env: CURRENT_STABLE_CHANNEL: nixpkgs-24.05-darwin