Skip to content

Commit

Permalink
chore: only run release please on push
Browse files Browse the repository at this point in the history
And then run release-please tests on release PRs
  • Loading branch information
lukekarrys committed Nov 6, 2023
1 parent b42e796 commit cff9ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit cff9ac2

Please sign in to comment.