From 46b0532f8468cf864e0881a3b4dad692ce01e161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 4 Mar 2026 21:41:17 +0800 Subject: [PATCH] Set up gh auth in release workflow Invoke `gh auth setup-git` in the release GitHub Actions workflow before cloning the hash repo so git is configured to use the GitHub CLI authentication. This prevents authentication issues when running `gh repo clone` and subsequent git operations in CI. --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 143245f86..79ec8a22c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -486,6 +486,7 @@ jobs: VERSION="${GITHUB_REF#refs/tags/}" HASH_REPO="NapNeko/napcat-release-hash" + gh auth setup-git gh repo clone "$HASH_REPO" hash-repo node .github/scripts/publish-release-hash.mjs \