Skip to content

Commit

Permalink
chore: Fix autorelease toggle (#1605)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma committed Dec 2, 2020
1 parent 846d6a9 commit 7a56371
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-please.yml
Expand Up @@ -6,12 +6,13 @@ on:
name: release-please
jobs:
release-please:
if: secrets.ENABLE_RELEASE_PLEASE
env:
ENABLE_AUTO_APPROVE: ${{ secrets.ENABLE_AUTO_APPROVE }}
ENABLE_RELEASE_PLEASE: ${{ secrets.ENABLE_RELEASE_PLEASE }}
runs-on: ubuntu-latest
steps:
- name: ReleasePlease
if: ${{ env.ENABLE_RELEASE_PLEASE }}
uses: GoogleCloudPlatform/release-please-action@v2.5.7
with:
command: release-pr
Expand All @@ -23,7 +24,7 @@ jobs:
monorepo-tags: true
bump-minor-pre-major: true
- name: AutoApprove
if: ${{ always() }}
if: ${{ always() && env.ENABLE_RELEASE_PLEASE }}
uses: actions/github-script@v2
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
Expand Down

0 comments on commit 7a56371

Please sign in to comment.