From cff9ac2c3083769a383e00bc60b91562f03116e3 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Mon, 6 Nov 2023 09:35:09 -0700 Subject: [PATCH] chore: only run release please on push And then run release-please tests on release PRs --- .github/workflows/release-please.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index f942e74122..de4cb087a7 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -13,7 +13,7 @@ jobs: permissions: contents: write # to create release commit (google-github-actions/release-please-action) pull-requests: write # to create release PR (google-github-actions/release-please-action) - + if: github.event_name == 'push' runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v2 @@ -64,5 +64,5 @@ jobs: test: name: Release Test needs: [ release-please ] - if: needs.release-please.outputs.pr + if: needs.release-please.outputs.pr || startsWith(github.head_ref, 'release-v') uses: ./.github/workflows/tests.yml