From 3f6c52bbb0fdc839e624372b6685e885cb9315b1 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Sun, 22 Oct 2023 15:17:39 +0100 Subject: [PATCH] ci: only run on pushes to main branch --- .github/workflows/build.yml | 4 ++-- .github/workflows/build_ci.yml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4ed667b..52246b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,8 +2,8 @@ name: Build on: push: - tags: - - "*" + # Build on each new tag + tags: ["*"] # Allow manual trigger workflow_dispatch: diff --git a/.github/workflows/build_ci.yml b/.github/workflows/build_ci.yml index 2f805a3..300d8d9 100644 --- a/.github/workflows/build_ci.yml +++ b/.github/workflows/build_ci.yml @@ -3,8 +3,7 @@ name: Build CI Img on: # Push includes PR merge push: - branches: - - main + branches: [main] paths: # Workflow is triggered only if deps change - "pyproject.toml"