From b6b5b35bf3ffd92e56d71335dbd8b2769fab2f65 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Wed, 26 Jan 2022 17:41:37 -0800 Subject: [PATCH] Reduce release branch maintenance overhead (#5245) * Reduce release branch maintenance overhead * Fix the var name * Check if condition needed on downstream job * Remove unnecessary condition --- .github/workflows/ci.yml | 8 ++++++++ .github/workflows/pr.yml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6991c0000c..a016ae84ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,6 +84,10 @@ jobs: testLatestDeps: runs-on: ubuntu-latest + # release branches are excluded + # because any time a new library version is released to maven central it can fail + # which requires unnecessary release branch maintenance, especially for patches + if: ${{ !startsWith(github.ref_name, 'v') }} steps: - uses: actions/checkout@v2.3.4 @@ -145,6 +149,10 @@ jobs: arguments: ":smoke-tests:test -PsmokeTestSuite=${{ matrix.smoke-test-suite }}" setup-muzzle-matrix: + # release branches are excluded + # because any time a new library version is released to maven central it can fail + # which requires unnecessary release branch maintenance, especially for patches + if: ${{ !startsWith(github.ref_name, 'v') }} runs-on: ubuntu-latest outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 8f01162d52..6b82b2a49e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -161,6 +161,10 @@ jobs: arguments: ":smoke-tests:test -PsmokeTestSuite=${{ matrix.smoke-test-suite }}" setup-muzzle-matrix: + # release branches are excluded + # because any time a new library version is released to maven central it can fail + # which requires unnecessary release branch maintenance, especially for patches + if: ${{ !startsWith(github.base_ref, 'v') }} runs-on: ubuntu-latest outputs: matrix: ${{ steps.set-matrix.outputs.matrix }}