From 1df95a79c22b2198df8beb5a7db5998492461aaf Mon Sep 17 00:00:00 2001 From: Erik Rehm Date: Thu, 11 Jan 2024 12:15:55 +0100 Subject: [PATCH] Change auth for automerge --- .github/dependabot.yml | 2 +- .github/workflows/auto-merge.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index dcfbaf3..59d3ad0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -16,4 +16,4 @@ updates: directory: / schedule: interval: daily - time: "10:20" + time: "11:20" diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 73e89a6..743ef0d 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -10,8 +10,9 @@ jobs: runs-on: ubuntu-latest if: ${{ github.actor == 'dependabot[bot]' && contains( github.event.pull_request.labels.*.name, 'github_actions') }} steps: + - name: Authenticate cli with a PAT + run: echo "${{ secrets.MERGE_TOKEN }}" | gh auth login --with-token - name: Enable auto-merge for Dependabot GitHub Actions PRs run: gh pr merge --auto --squash "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}