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

Commit

Permalink
ci: 00 PR Auto approve: auto approve dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
John Andersen authored and pdxjohnny committed Jun 24, 2024
1 parent 692cb79 commit e4b18fc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/00_pr_auto_approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: contains(fromJson('["dependabot[bot]", "github-actions[bot]", "pdxjohnny"]'), github.actor)
if: contains(fromJson('["app/dependabot", "app/github-actions", "pdxjohnny"]'), github.actor)
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
Expand All @@ -20,3 +20,11 @@ jobs:
- uses: hmarr/auto-approve-action@8f929096a962e83ccdfa8afcf855f39f12d4dac7 # v4
with:
review-message: "LGTM"

- if: contains(fromJson('["app/dependabot", "app/github-actions"]'), github.actor)
env:
GH_TOKEN: ${{ github.token }}
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
run: |
set -x
gh pr merge --rebase "${PULL_REQUEST_NUMBER}"

0 comments on commit e4b18fc

Please sign in to comment.