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.
This commit is contained in:
手瓜一十雪 committed 2026-03-04 21:41:17 +08:00
1 parent 819f76afbf
commit 46b0532f84
1 file changed
+1
+1
View File
@@ -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 \