wiki sync setup
wiki-sync-setup.mdGitHub Wiki Sync Workflow
This repository includes a workflow at .github/workflows/sync-wiki.yml that mirrors the local /wiki directory to the GitHub wiki for this repo.
What It Does
Each run:
- Checks out the main repository
- Clones
https://github.com/ashprids/fridg3.org.wiki.git - Syncs
/wikiinto the wiki repo with deletion enabled - Commits only if something changed
- Pushes the updated wiki back to GitHub
Trigger
The workflow runs on:
- Pushes to
main - Manual runs via
workflow_dispatch
Required Secret
Create this repository secret in Settings -> Secrets and variables -> Actions.
WIKI_PUSH_TOKEN
This should be a GitHub token that can push to:
ashprids/fridg3.org.wiki
Safest options:
- A classic personal access token with
reposcope - A fine-grained token with write access to repository contents for
ashprids/fridg3.org
Notes
- 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.
Troubleshooting
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