chore: Fix autorelease toggle (#1605)
This commit is contained in:
parent
846d6a9705
commit
7a5637108a
|
@ -6,12 +6,13 @@ on:
|
||||||
name: release-please
|
name: release-please
|
||||||
jobs:
|
jobs:
|
||||||
release-please:
|
release-please:
|
||||||
if: secrets.ENABLE_RELEASE_PLEASE
|
|
||||||
env:
|
env:
|
||||||
ENABLE_AUTO_APPROVE: ${{ secrets.ENABLE_AUTO_APPROVE }}
|
ENABLE_AUTO_APPROVE: ${{ secrets.ENABLE_AUTO_APPROVE }}
|
||||||
|
ENABLE_RELEASE_PLEASE: ${{ secrets.ENABLE_RELEASE_PLEASE }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ReleasePlease
|
- name: ReleasePlease
|
||||||
|
if: ${{ env.ENABLE_RELEASE_PLEASE }}
|
||||||
uses: GoogleCloudPlatform/release-please-action@v2.5.7
|
uses: GoogleCloudPlatform/release-please-action@v2.5.7
|
||||||
with:
|
with:
|
||||||
command: release-pr
|
command: release-pr
|
||||||
|
@ -23,7 +24,7 @@ jobs:
|
||||||
monorepo-tags: true
|
monorepo-tags: true
|
||||||
bump-minor-pre-major: true
|
bump-minor-pre-major: true
|
||||||
- name: AutoApprove
|
- name: AutoApprove
|
||||||
if: ${{ always() }}
|
if: ${{ always() && env.ENABLE_RELEASE_PLEASE }}
|
||||||
uses: actions/github-script@v2
|
uses: actions/github-script@v2
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
|
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
|
||||||
|
|
Loading…
Reference in New Issue