From e4b18fc7c1daffe77cadf61dca42cdf6a89cc22b Mon Sep 17 00:00:00 2001 From: John Andersen Date: Mon, 24 Jun 2024 11:16:56 -0700 Subject: [PATCH] ci: 00 PR Auto approve: auto approve dependabot --- .github/workflows/00_pr_auto_approve.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/00_pr_auto_approve.yml b/.github/workflows/00_pr_auto_approve.yml index d4d190b4e8..0aca28e25b 100644 --- a/.github/workflows/00_pr_auto_approve.yml +++ b/.github/workflows/00_pr_auto_approve.yml @@ -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 @@ -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}"