Skip to content

Commit

Permalink
Auto approve dependabot PRs (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored Sep 25, 2023
1 parent 933fe26 commit 5052883
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Reference:
# - https://github.com/tibdex/github-app-token
# - https://github.com/hmarr/auto-approve-action

name: ci-approve

on: pull_request_target

jobs:
auto-approve:
name: "auto-approve"

runs-on: ubuntu-latest

permissions:
pull-requests: write

if: github.actor == 'dependabot[bot]'
steps:
- name: "generate token"
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.AUTH_APP_ID }}
private_key: ${{ secrets.AUTH_APP_PRIVATE_KEY }}

- uses: hmarr/auto-approve-action@v3
with:
github-token: ${{ steps.generate-token.outputs.token }}
review-message: |
🤖 Bleep! Bloop!
Dependabot[bot] pull-request auto-approved 👍

0 comments on commit 5052883

Please sign in to comment.