From 3b25a449f186c18aaa90fe83a1938999a511559a Mon Sep 17 00:00:00 2001 From: JG2401 <76785435+JG2401@users.noreply.github.com> Date: Sat, 2 May 2026 22:22:12 +0200 Subject: [PATCH] Add debug step for GitHub token presence check --- .github/workflows/dependabotautomerge.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dependabotautomerge.yml b/.github/workflows/dependabotautomerge.yml index 5bd850b..7f622e8 100644 --- a/.github/workflows/dependabotautomerge.yml +++ b/.github/workflows/dependabotautomerge.yml @@ -14,8 +14,17 @@ jobs: runs-on: ubuntu-latest steps: - - name: Auto-merge - if: contains(github.event.pull_request.labels.*.name, 'auto-merge') - uses: fastify/github-action-merge-dependabot@v3 - with: - github-token: ${{ secrets.GH_TOKEN }} + - name: Debug token presence + run: | + if [ -z "${{ secrets.GITHUB_TOKEN }}" ]; then + echo "TOKEN IS EMPTY" + exit 1 + else + echo "TOKEN EXISTS" + fi + + - name: Auto-merge + if: contains(github.event.pull_request.labels.*.name, 'auto-merge') + uses: fastify/github-action-merge-dependabot@v3 + with: + github-token: ${{ secrets.GH_TOKEN }}