From 7788504bc2894fc76f689a97b6618884accd80b8 Mon Sep 17 00:00:00 2001 From: Matt Knop Date: Thu, 20 Aug 2026 14:17:07 -0600 Subject: [PATCH 1/2] Replace GITHUB_TOKEN with PAT_TOKEN in workflow --- .github/workflows/update-nvim-plugins.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-nvim-plugins.yml b/.github/workflows/update-nvim-plugins.yml index 6839616..e0f1e38 100644 --- a/.github/workflows/update-nvim-plugins.yml +++ b/.github/workflows/update-nvim-plugins.yml @@ -29,7 +29,7 @@ jobs: id: create-pr uses: peter-evans/create-pull-request@v8 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PAT_TOKEN }} commit-message: "chore: update neovim plugins" title: "chore: update neovim plugins" body: | @@ -44,5 +44,5 @@ jobs: if: steps.create-pr.outputs.pull-request-number != '' run: gh pr merge --auto --squash "$PR_URL" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.PAT_TOKEN }} PR_URL: ${{ steps.create-pr.outputs.pull-request-url }} From 1694f90814eff2e06f2ede338e145c6a7d0e951a Mon Sep 17 00:00:00 2001 From: Matt Knop Date: Thu, 20 Aug 2026 14:24:16 -0600 Subject: [PATCH 2/2] Update auto-merge step in workflow configuration --- .github/workflows/update-nvim-plugins.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-nvim-plugins.yml b/.github/workflows/update-nvim-plugins.yml index e0f1e38..2998b02 100644 --- a/.github/workflows/update-nvim-plugins.yml +++ b/.github/workflows/update-nvim-plugins.yml @@ -40,9 +40,8 @@ jobs: delete-branch: true labels: "dependencies" - - name: Enable auto-merge - if: steps.create-pr.outputs.pull-request-number != '' - run: gh pr merge --auto --squash "$PR_URL" + - name: Enable Auto-Merge + if: steps.cpr.outputs.pull-request-operation == 'created' + run: gh pr merge --auto --squash "${{ steps.cpr.outputs.pull-request-number }}" env: GH_TOKEN: ${{ secrets.PAT_TOKEN }} - PR_URL: ${{ steps.create-pr.outputs.pull-request-url }}