Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 22d9ca7

Browse files
John Andersenpdxjohnny
authored andcommitted
ci: pr auto approve: Use repsoitory dispatch
1 parent 58dfe33 commit 22d9ca7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/00_pr_auto_approve.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ on:
1212
# https://github.com/marketplace/actions/repository-dispatch
1313
jobs:
1414
trigger-approve-pr:
15-
if: false
16-
# if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.actor) }}
15+
if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.actor) }}
1716
runs-on: ubuntu-latest
1817
permissions:
1918
contents: write
@@ -37,7 +36,7 @@ jobs:
3736
permissions:
3837
pull-requests: write
3938
# if: ${{ github.event_name == 'repository_dispatch' && contains(fromJson('["dependabot[bot]", "github-actions[bot]", "pdxjohnny"]'), github.event.actor) }}
40-
if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.actor) }}
39+
if: ${{ contains(fromJson('["pdxjohnny"]'), github.event.actor) }}
4140
steps:
4241
- name: Harden Runner
4342
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1

0 commit comments

Comments
 (0)