From 7a5637108a19869b280d42d08528e17a5a6e3055 Mon Sep 17 00:00:00 2001 From: Daniel Azuma Date: Tue, 1 Dec 2020 17:09:27 -0800 Subject: [PATCH] chore: Fix autorelease toggle (#1605) --- .github/workflows/release-please.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 80cd5e4bd..daf8731c4 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -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 @@ -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}}