chore: only run release please on push

And then run release-please tests on release PRs
This commit is contained in:
Luke Karrys 2023-11-06 09:35:09 -07:00
parent b42e796617
commit cff9ac2c30

View file

@ -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