-
Notifications
You must be signed in to change notification settings - Fork 0
Wiki Sync Setup
github-actions[bot] edited this page Jul 5, 2026
·
2 revisions
This repository includes a workflow at .github/workflows/sync-wiki.yml that mirrors the local /wiki directory to the GitHub wiki for this repo.
Each run:
- Checks out the main repository
- Clones
https://github.com/ashprids/fridge.dev.wiki.git - Syncs
/wikiinto the wiki repo with deletion enabled - Commits only if something changed
- Pushes the updated wiki back to GitHub
The workflow runs on:
- Pushes to
main - Manual runs via
workflow_dispatch
Create this repository secret in Settings -> Secrets and variables -> Actions.
This should be a GitHub token that can push to:
ashprids/fridge.dev.wiki
Safest options:
- A classic personal access token with
reposcope - A fine-grained token with write access to repository contents for
ashprids/fridge.dev
- The workflow mirrors
/wikiexactly, so deleted local wiki files will also be deleted from the GitHub wiki. -
Home.mdand_Sidebar.mdare supported as normal wiki pages. - The workflow pushes to the wiki repo’s default branch, which is typically
master.
If cloning fails:
- Verify
WIKI_PUSH_TOKENexists - Verify the token can access the repository wiki
- Verify the wiki is enabled for the repository
If pushing fails:
- Verify the token has write access
- Check whether branch protections or org policies are blocking the push
- Confirm the wiki repo still uses
masteras its default branch