feat: approve before automerge
This commit is contained in:
12
.github/workflows/deployment-weekly-release.yml
vendored
12
.github/workflows/deployment-weekly-release.yml
vendored
@@ -8,6 +8,7 @@ on:
|
|||||||
send-notifications:
|
send-notifications:
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
required: false
|
||||||
|
default: true
|
||||||
description: Send notifications
|
description: Send notifications
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -46,6 +47,17 @@ jobs:
|
|||||||
uses: Ilshidur/action-discord@master
|
uses: Ilshidur/action-discord@master
|
||||||
with:
|
with:
|
||||||
args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }} (new behaviour: ${{ steps.semver.outputs.bump }})"
|
args: "Created a release PR ${{ steps.create-pull-request.outputs.url }} for version ${{ steps.semver.outputs.next }} (new behaviour: ${{ steps.semver.outputs.bump }})"
|
||||||
|
- name: Obtain token
|
||||||
|
id: obtainApprovalToken
|
||||||
|
uses: tibdex/github-app-token@v2
|
||||||
|
with:
|
||||||
|
private_key: ${{ secrets.RENOVATE_APPROVE_PRIVATE_KEY }}
|
||||||
|
app_id: ${{ secrets.RENOVATE_APPROVE_APP_ID }}
|
||||||
|
- name: Approve PR
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ steps.obtainApprovalToken.outputs.token }}
|
||||||
|
run: |
|
||||||
|
gh pr review --approve --body "Automatically approved by GitHub Action"
|
||||||
- id: automerge
|
- id: automerge
|
||||||
if: ${{ steps.semver.outputs.bump != 'major' }}
|
if: ${{ steps.semver.outputs.bump != 'major' }}
|
||||||
name: automerge
|
name: automerge
|
||||||
|
|||||||
Reference in New Issue
Block a user