From b4cfc81b88cd758cc3d2f9711c89b2cc210c1b56 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Fri, 3 Mar 2023 23:42:40 +0000 Subject: [PATCH] chore: automatically approve Ben's docs PRs --- .github/workflows/contrib.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/contrib.yaml b/.github/workflows/contrib.yaml index 29b23caf54474..0d3cae95b0a8b 100644 --- a/.github/workflows/contrib.yaml +++ b/.github/workflows/contrib.yaml @@ -19,7 +19,7 @@ concurrency: pr-${{ github.ref }} jobs: # Dependabot is annoying, but this makes it a bit less so. - auto-approve: + auto-approve-dependabot: runs-on: ubuntu-latest if: github.event_name == 'pull_request_target' permissions: @@ -27,6 +27,19 @@ jobs: steps: - uses: hmarr/auto-approve-action@v3 if: github.actor == 'dependabot[bot]' + auto-approve-docs: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request_target' + permissions: + pull-requests: write + steps: + - name: Get changed files in the docs folder + id: changed-files + uses: tj-actions/changed-files@v35 + with: + files: docs/* + - uses: hmarr/auto-approve-action@v3 + if: github.actor == 'bpmct' && steps.changed-files.outputs.only_changed == 'true' cla: runs-on: ubuntu-latest