From 423e74c841c860b0d0444ef63d5944f1e78eaf1a Mon Sep 17 00:00:00 2001 From: Alexander Trakhimenok Date: Thu, 20 Aug 2026 21:51:53 +0100 Subject: [PATCH] ci: run push builds on the default branch only A PR branch fired both the push and the pull_request trigger, so every PR produced two identical runs. Restricting push: to the default branch leaves pull_request as the single PR signal and keeps the post-merge run on main. --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bcd124..fc7de3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,7 @@ name: Go CI on: push: - branches: - - '**' + branches: [main] tags: - 'v[0-9]+.[0-9]+.[0-9]+' # Push events to matching v*, i.e. v20.15.10 pull_request: