From 87474fa33d936a13ccd05435e5545bcd2ba04519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sun, 9 Aug 2026 00:20:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Use=20GitHub=20CLI=20for=20Git?= =?UTF-8?q?=20authentication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pre-commit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 1c4f5dfc..1cdc02f7 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -72,11 +72,11 @@ jobs: - name: Commit and push changes if: env.CAN_PUSH == 'true' && steps.changes.outputs.changed == 'true' env: - PR_PUSH_TOKEN: ${{ steps.pr-push.outputs.token }} + GH_TOKEN: ${{ steps.pr-push.outputs.token }} run: | git config user.name "pr-push[bot]" git config user.email "pr-push[bot]@users.noreply.github.com" - git remote set-url origin "https://x-access-token:${PR_PUSH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" + gh auth setup-git git add -A if git diff --staged --quiet; then echo "No changes to commit"