From 19450906e655521db61ed678a070c255bb07f28c Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Mon, 2 Oct 2023 18:13:12 -0700 Subject: [PATCH] ci: limit push builds to primary and hotfix branches --- .github/workflows/ci-cd.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 892b9d675..614960547 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -1,9 +1,10 @@ name: CI/CD on: - workflow_dispatch: # Allows you to run this workflow manually from the Actions tab pull_request: # Runs whenever a pull request is created or updated - push: # Runs whenever a commit is pushed to the repository + push: # Runs whenever a commit is pushed to the repository... + branches: [main, develop, hotfix/*] # ...on any of these branches + workflow_dispatch: # Allows you to run this workflow manually from the Actions tab concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'