Skip to content

Commit

Permalink
Feat: Update the automerge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Dec 6, 2023
1 parent 4d08ddd commit c306e63
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ on:
GITHUB:
description: 'GitHub Token'
required: false
CI_GITHUB_TOKEN:
description: 'GitHub Token'
required: false
permissions:
contents: write
pull-requests: write
jobs:
static-checks:
name: Check the status of static checks
Expand All @@ -31,6 +31,9 @@ jobs:
wait-interval: 30

autoapprove:
permissions:
contents: write
pull-requests: write
name: Auto Approve a PR by dependabot
needs: static-checks
runs-on: ubuntu-latest
Expand All @@ -40,7 +43,7 @@ jobs:
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Approve a PR for Anmol nagpal
run: gh pr review --approve "$PR_URL"
Expand Down

0 comments on commit c306e63

Please sign in to comment.