File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - " **"
7- workflow_dispatch : # manual trigger
7+ workflow_dispatch :
88
99permissions :
1010 contents : write
9696 `;
9797 }
9898
99- // Add new report link at the top
10099 const button = `<p><a href="./${reportName}">${reportName}</a></p>`;
101100 index = index.replace(
102101 '<div id="reports">',
@@ -115,15 +114,16 @@ jobs:
115114 run : |
116115 git config user.name "gemini-bot"
117116 git config user.email "gemini@actions"
117+
118118 git add report*.html report.html
119119 git commit -m "Add Gemini code report" || echo "No changes to commit"
120120
121- # Add GitHub Pages repo as remote
121+ # Use the classic PAT token to push
122122 git remote add pages https://x-access-token:${GH_PAGES_PAT}@github.com/Mod-Sauce/mod-sauce.github.io.git
123123
124- # Fetch main branch or create if missing
124+ # Fetch main branch if it exists, or create orphan branch if repo is empty
125125 git fetch pages main || git checkout --orphan main
126126 git reset pages/main || true
127-
128- # Push everything to main
127+
128+ # Push changes
129129 git push pages HEAD:main --force
You can’t perform that action at this time.
0 commit comments