Skip to content

Commit

Permalink
chore: fix release-please (DEV-1396) #234
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Oct 7, 2022
1 parent 9c6827e commit 3bd92d8
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/release-please.yml
@@ -1,30 +1,18 @@
name: Release-Please

# triggered when tests complete on main branch
# triggered when a PR is merged into main
on:
workflow_run:
workflows:
- "Test"
branches:
- main
pull_request:
types:
- completed
- closed

jobs:
refused:
# Do not release if tests failed
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure'}}
steps:
- id: refused_step
run: exit 1

release-please:
if: github.event.pull_request.merged == true
# Automate releases with Conventional Commit Messages as Pull Requests are merged into "main" branch
name: Prepare next release
runs-on: ubuntu-latest
# release only if tests pass
if: ${{ github.event.workflow_run.conclusion == 'success'}}
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
with:
Expand Down

0 comments on commit 3bd92d8

Please sign in to comment.