Skip to content

Commit

Permalink
Merge pull request #64 from canonical/IAM-1021
Browse files Browse the repository at this point in the history
Add auto approver workflow
  • Loading branch information
nsklikas authored Sep 5, 2024
2 parents 9c228a3 + ce52007 commit 877a055
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/auto-approver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: auto-approver
run-name: CI for approving PRs

on:
push:
branches:
- "renovate/**"
- "automated-update-charm-libs"

jobs:
autoapprove:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Approve PR
run: |
gh pr review --approve || true
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Enable automerge if required
if: startsWith(github.ref_name, 'renovate/auto-')
run: |
gh pr merge --auto --merge || true
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}

0 comments on commit 877a055

Please sign in to comment.