From 34d1164e6fe3831ad95c389626501ecbd59b063a Mon Sep 17 00:00:00 2001 From: Imran Akram Date: Fri, 9 Oct 2026 17:14:06 +0200 Subject: [PATCH] Build pushes on master only; pull requests build every change The CI build ran on every push to any branch and on every pull request to master, so each push to a branch with an open pull request built the same code twice. Each run also counts towards the version number, which is the number of builds this month, so the duplicates used up version numbers. Pushes now build only on master, where the Release workflow takes its packages from. A change on its way to master is built by its pull request, against the merge result. workflow_dispatch builds any branch by hand. --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 678dbaa..b5301bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,16 @@ name: CI Build +# Pushes build only on master: a change on its way there is built by its pull request, +# against the merge result, and building the branch push as well ran the same build twice +# and used up a version number each time. Build any branch by hand with workflow_dispatch. on: push: branches: - - '**' + - master pull_request: branches: - master + workflow_dispatch: jobs: build: