From aa94e59647f46155a14f390902fab7885ca46622 Mon Sep 17 00:00:00 2001 From: Nick Khyl Date: Thu, 12 Dec 2024 11:51:52 -0600 Subject: [PATCH] github/workflows/{android,go_mod_tidy}: run on all PRs and on pushes to {main,release-branch/*} Previously, using * in branch filters prevented PR CI actions from running on prefixed branches 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 }}