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

Commit 58dfe33

Browse files
John Andersenpdxjohnny
authored andcommitted
ci: pr auto approve: On review
1 parent 8e40592 commit 58dfe33

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/00_pr_auto_approve.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ 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) }}
1517
runs-on: ubuntu-latest
1618
permissions:
1719
contents: write
18-
if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.actor) }}
1920
steps:
2021
- name: 'Repository Dispatch: approve-pr'
2122
uses: peter-evans/repository-dispatch@v3
@@ -35,7 +36,8 @@ jobs:
3536
runs-on: ubuntu-latest
3637
permissions:
3738
pull-requests: write
38-
if: ${{ github.event_name == 'repository_dispatch' && contains(fromJson('["dependabot[bot]", "github-actions[bot]", "pdxjohnny"]'), github.event.actor) }}
39+
# 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) }}
3941
steps:
4042
- name: Harden Runner
4143
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
@@ -46,8 +48,7 @@ jobs:
4648
with:
4749
review-message: "LGTM"
4850

49-
- if: contains(fromJson('["dependabot[bot]", "github-actions[bot]"]'), github.event.actor)
50-
env:
51+
- env:
5152
GH_TOKEN: ${{ github.token }}
5253
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
5354
run: |

0 commit comments

Comments
 (0)