Files
trx-rs/.github/workflows/sync-wiki.yml
T
sjg 0828f197a8 [chore](trx-rs): add workflow to sync docs submodule on wiki edits
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
2026-03-25 21:17:58 +01:00

35 lines
858 B
YAML

name: Sync wiki submodule
on:
gollum:
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update docs submodule to latest wiki
run: |
cd docs
git fetch origin
git checkout origin/master
cd ..
- name: Commit and push if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add docs
if git diff --cached --quiet; then
echo "No submodule changes to commit"
else
git commit -m "[chore](trx-rs): sync docs submodule with wiki"
git push
fi