From ba77223462ebb1de400114e635c3aeb0e250318a Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Thu, 16 Jan 2025 22:17:38 +0200 Subject: [PATCH] Fix how dependabot PRs are approved --- .github/workflows/dependency.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dependency.yml b/.github/workflows/dependency.yml index f83a62f..4086d38 100644 --- a/.github/workflows/dependency.yml +++ b/.github/workflows/dependency.yml @@ -8,13 +8,13 @@ permissions: jobs: dependency: runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]' }} + if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' }} steps: - name: Enable auto-merge for Dependency PRs run: gh pr merge --auto --merge "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - + - name: Automatically approve the PR - uses: hmarr/auto-approve-action@v4 \ No newline at end of file + uses: hmarr/auto-approve-action@v4