Skip to content

Commit c14b5a3

Browse files
authored
Fix git credentials for sync-llms-txt workflow (#61172)
1 parent 770c07b commit c14b5a3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/sync-llms-txt.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ jobs:
8080
REPO="github/docs-internal"
8181
if gh api "repos/$REPO/git/ref/heads/$BRANCH" --jq '.object.sha' > /dev/null 2>&1; then
8282
echo "Branch $BRANCH exists, fetching"
83-
git fetch origin "$BRANCH"
83+
git -c url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf="https://github.com/" \
84+
fetch origin "$BRANCH"
8485
git checkout "$BRANCH"
8586
else
8687
echo "Branch $BRANCH does not exist, creating from main"

0 commit comments

Comments
 (0)