Skip to content

Commit d62f434

Browse files
author
Fr4gm3nt3d_sh
committed
Update .github/workflows/llmcodereview.yml
1 parent f6ca352 commit d62f434

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/llmcodereview.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,13 @@ jobs:
115115
git config user.email "gemini@actions"
116116
git add report*.html report.html
117117
git commit -m "Add Gemini code report" || echo "No changes to commit"
118-
118+
119119
# Add GitHub Pages repo as remote
120120
git remote add pages https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/Mod-Sauce/mod-sauce.github.io.git
121121
122+
# Fetch main branch (create if missing)
123+
git fetch pages main || git checkout --orphan main
124+
git reset pages/main || true
125+
122126
# Push to main branch
123-
git push pages main
127+
git push pages HEAD:main --force

0 commit comments

Comments
 (0)