From c24562bc544a042fac697536ecb974b0a67183e5 Mon Sep 17 00:00:00 2001 From: Nick Khyl <1761190+nickkhyl@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:06:48 -0600 Subject: [PATCH] github/workflows/{android,go_mod_tidy}: run on all PRs and on pushes to {main,release-branch/*} (#591) Previously, using * in branch filters prevented PR CI actions from running on prefixed branches such as release-branch/* because * only matches characters except for forward slashes. In this PR, we remove the branch filter to ensure that Android builds and go mod tidy checks are executed on all PRs, regardless of the target branch. Additionally, these checks will now run on pushes to release-branch/*. Fixes tailscale/corp#25313 Signed-off-by: Nick Khyl --- .github/workflows/android.yml | 4 ++-- .github/workflows/go_mod_tidy.yml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index f7ec8692d6..efbedadf7f 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -4,9 +4,9 @@ on: push: branches: - main + - "release-branch/*" pull_request: - branches: - - "*" + # all PRs on all branches jobs: build: diff --git a/.github/workflows/go_mod_tidy.yml b/.github/workflows/go_mod_tidy.yml index b8b94605c1..d6c1dacaae 100644 --- a/.github/workflows/go_mod_tidy.yml +++ b/.github/workflows/go_mod_tidy.yml @@ -6,8 +6,7 @@ on: - main - "release-branch/*" pull_request: - branches: - - "*" + # all PRs on all branches concurrency: group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}