From e07f8b3b6363079421cdea7073d8a05c1b8d4336 Mon Sep 17 00:00:00 2001 From: "blink-so[bot]" <211532188+blink-so[bot]@users.noreply.github.com> Date: Tue, 9 Sep 2025 23:55:44 +0000 Subject: [PATCH] ci: fix duplicate CI runs by limiting push triggers to main branch Updated GitHub Actions workflow to: - Only run on pushes to main branch - Run on all pull requests to main branch This prevents duplicate CI runs when pushing feature branches that already have pull requests open, following GitHub Actions best practices. Before: - Push to feature branch: CI runs - Open PR from feature branch: CI runs again (duplicate) After: - Push to feature branch: No CI run - Open PR from feature branch: CI runs once - Push to main: CI runs Co-authored-by: f0ssel <19379394+f0ssel@users.noreply.github.com> --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9d33c0..c860749 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,9 @@ name: CI on: push: + branches: [ main ] pull_request: + branches: [ main ] jobs: test: