mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
chore: only run release please on push
And then run release-please tests on release PRs
This commit is contained in:
parent
b42e796617
commit
cff9ac2c30
1 changed files with 2 additions and 2 deletions
4
.github/workflows/release-please.yml
vendored
4
.github/workflows/release-please.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue