From 30812cf8be93a4b792556e12b2b1ef368bfd90c6 Mon Sep 17 00:00:00 2001 From: Tim Richardson Date: Sun, 1 Mar 2026 06:57:14 +0000 Subject: [PATCH] fix: prevent CI jobs from running twice on PRs The `on: [push, pull_request]` trigger caused both events to fire when pushing to a branch with an open PR, duplicating every CI job. Restrict `push` to main only; PRs are covered by the `pull_request` trigger. Closes #66 Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a44f63..37d134c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,9 @@ name: CI -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: jobs: test_nextflow: