From 0a6e8d00ca055f6644f25608661af0d6fd1f2163 Mon Sep 17 00:00:00 2001 From: Alexander Trakhimenok Date: Thu, 20 Aug 2026 21:51:54 +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 3ec55c6..5898a02 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: