From 6bd835b408c68df60e06961a7b0c82728af99fc2 Mon Sep 17 00:00:00 2001 From: iliana etaoin Date: Tue, 3 Sep 2024 17:48:29 -0700 Subject: [PATCH] don't run GHA workflows on tag pushes (#6510) Per the branching experiment review we are about to begin in the control plane huddle. 1. For the rust.yml workflow, only run the `push` mode when pushing to `main` or any branch matching the glob `rel/**`. 2. For the hakari.yml workflow, apply the same rules. This has the effect of enabling them for the release branches, and also enabling them for pull requests that do not target the `main` branch. --- .github/workflows/hakari.yml | 5 ++--- .github/workflows/rust.yml | 7 ++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/hakari.yml b/.github/workflows/hakari.yml index 11aa638ace..e0fb071fa3 100644 --- a/.github/workflows/hakari.yml +++ b/.github/workflows/hakari.yml @@ -4,9 +4,8 @@ on: push: branches: - main - pull_request: - branches: - - main + - 'rel/**' + pull_request: {} name: cargo hakari diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 88b8660499..8bfb499726 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,7 +3,12 @@ # name: Rust -on: [ push, pull_request ] +on: + push: + branches: + - main + - 'rel/**' + pull_request: {} jobs: check-style: