Skip to content

Commit cff9ac2

Browse files
committed
chore: only run release please on push
And then run release-please tests on release PRs
1 parent b42e796 commit cff9ac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-please.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
permissions:
1414
contents: write # to create release commit (google-github-actions/release-please-action)
1515
pull-requests: write # to create release PR (google-github-actions/release-please-action)
16-
16+
if: github.event_name == 'push'
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: google-github-actions/release-please-action@v2
@@ -64,5 +64,5 @@ jobs:
6464
test:
6565
name: Release Test
6666
needs: [ release-please ]
67-
if: needs.release-please.outputs.pr
67+
if: needs.release-please.outputs.pr || startsWith(github.head_ref, 'release-v')
6868
uses: ./.github/workflows/tests.yml

0 commit comments

Comments
 (0)