From 54e2febc32cbd0c1c53ab4e316be6f20a02976cb Mon Sep 17 00:00:00 2001 From: asepharyana <48643666+asepharyana@users.noreply.github.com> Date: Wed, 26 Aug 2026 08:53:35 +0700 Subject: [PATCH] chore: update dependabot-auto-merge.yml --- .github/dependabot-auto-merge.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/dependabot-auto-merge.yml b/.github/dependabot-auto-merge.yml index fd8a4b3..7f78348 100644 --- a/.github/dependabot-auto-merge.yml +++ b/.github/dependabot-auto-merge.yml @@ -1,24 +1,17 @@ -name: dependabot-auto-merge +name: Dependabot Auto-Merge +on: pull_request -on: - pull_request: - branches: - - main - - master - -# Auto-merge Dependabot PRs with passing CI permissions: contents: write pull-requests: write jobs: - dependabot: + auto-merge: runs-on: ubuntu-latest - # Only for Dependabot PRs if: github.actor == 'dependabot[bot]' steps: - - name: Auto-merge - run: gh pr merge --auto --merge "$PR_NUMBER" + - name: Enable auto-merge for Dependabot PR + run: gh pr merge --auto --merge "$PR_URL" env: - PR_NUMBER: ${{ github.event.number }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}