Skip to content

release: v5.9.0 — Jinja2 templates, preambles, attune-help 0.3.0 #61

release: v5.9.0 — Jinja2 templates, preambles, attune-help 0.3.0

release: v5.9.0 — Jinja2 templates, preambles, attune-help 0.3.0 #61

Workflow file for this run

name: Auto Approve
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
jobs:
auto-approve-dependabot:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Approve Dependabot PR
run: gh pr review "$PR_URL" --approve --body "Auto-approved Dependabot dependency update"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
auto-approve-owner:
if: github.actor == 'patrickroebuck'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Wait for CI checks
uses: lewagon/wait-on-check-action@a08fbe2b86f9336198f33be6ad9c16b96f92799c # v1.6.0
with:
ref: ${{ github.event.pull_request.head.sha }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
running-workflow-name: auto-approve-owner
check-regexp: ^(test |lint|Analyze )
wait-interval: 30
allowed-conclusions: success
- name: Approve PR after CI passes
run: gh pr review "$PR_URL" --approve --body "Auto-approved after CI checks passed"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}