Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Commit 91239f0

Browse files
Merge branch 'wiki-publishing' of https://github.com/SettleTop-Inc/CodeRoot.ai into wiki-publishing
2 parents a7556aa + e9278b8 commit 91239f0

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/update-wiki.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ jobs:
9393
echo "No changes to publish."
9494
fi
9595
96+
- name: Comment on PR with changed docs files
97+
if: github.event_name == 'pull_re echo "Using token from: ${{ steps.select_token.outputs.source }}"
98+
9699
- name: Comment on PR with changed docs files
97100
if: github.event_name == 'pull_request' && steps.docs_files.outputs.docs_files != '[]'
98101
env:
@@ -116,7 +119,7 @@ jobs:
116119
117120
- name: Post final publish comment
118121
env:
119-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122+
GITHUB_TOKEN: ${{ steps.select_token.outputs.token }}
120123
DOCS_FILES: ${{ steps.docs_files.outputs.docs_files }}
121124
run: |
122125
owner=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f1)

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.crush/
2+
CRUSH.md

scripts/init-wiki.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async function main() {
152152
await copyMarkdownRecursive(docsDir, workingDir);
153153

154154
// commit & push
155-
exec(`git -C "${tempBase}" add --all`);
155+
exec(`git -C "${workingDir}" add --all`);
156156
const status = execSync(`git -C "${workingDir}" status --porcelain`).toString().trim();
157157
if (!status) {
158158
console.log('No changes to commit.');

0 commit comments

Comments
 (0)