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

Commit

Permalink
ci: pr auto approve: Use repsoitory dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
John Andersen authored and pdxjohnny committed Jul 12, 2024
1 parent 58dfe33 commit 22d9ca7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/00_pr_auto_approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ on:
# https://github.com/marketplace/actions/repository-dispatch
jobs:
trigger-approve-pr:
if: false
# if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.actor) }}
if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.actor) }}
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -37,7 +36,7 @@ jobs:
permissions:
pull-requests: write
# if: ${{ github.event_name == 'repository_dispatch' && contains(fromJson('["dependabot[bot]", "github-actions[bot]", "pdxjohnny"]'), github.event.actor) }}
if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.actor) }}
if: ${{ contains(fromJson('["pdxjohnny"]'), github.event.actor) }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
Expand Down

0 comments on commit 22d9ca7

Please sign in to comment.