Skip to content

Commit 02f0968

Browse files
authored
chore: automatically approve Ben's docs PRs (#6444)
1 parent 573a8d5 commit 02f0968

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/contrib.yaml

+14-1
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,27 @@ concurrency: pr-${{ github.ref }}
1919

2020
jobs:
2121
# Dependabot is annoying, but this makes it a bit less so.
22-
auto-approve:
22+
auto-approve-dependabot:
2323
runs-on: ubuntu-latest
2424
if: github.event_name == 'pull_request_target'
2525
permissions:
2626
pull-requests: write
2727
steps:
2828
- uses: hmarr/auto-approve-action@v3
2929
if: github.actor == 'dependabot[bot]'
30+
auto-approve-docs:
31+
runs-on: ubuntu-latest
32+
if: github.event_name == 'pull_request_target'
33+
permissions:
34+
pull-requests: write
35+
steps:
36+
- name: Get changed files in the docs folder
37+
id: changed-files
38+
uses: tj-actions/changed-files@v35
39+
with:
40+
files: docs/*
41+
- uses: hmarr/auto-approve-action@v3
42+
if: github.actor == 'bpmct' && steps.changed-files.outputs.only_changed == 'true'
3043

3144
cla:
3245
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)