Skip to content

Commit 46b0532

Browse files
committed
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.
1 parent 819f76a commit 46b0532

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ jobs:
486486
VERSION="${GITHUB_REF#refs/tags/}"
487487
HASH_REPO="NapNeko/napcat-release-hash"
488488
489+
gh auth setup-git
489490
gh repo clone "$HASH_REPO" hash-repo
490491
491492
node .github/scripts/publish-release-hash.mjs \

0 commit comments

Comments
 (0)