From 0828f197a8327973b2f887e8939c7d2626695930 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Wed, 25 Mar 2026 21:17:58 +0100 Subject: [PATCH] [chore](trx-rs): add workflow to sync docs submodule on wiki edits Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Stan Grams --- .github/workflows/sync-wiki.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/sync-wiki.yml diff --git a/.github/workflows/sync-wiki.yml b/.github/workflows/sync-wiki.yml new file mode 100644 index 0000000..7b4fed5 --- /dev/null +++ b/.github/workflows/sync-wiki.yml @@ -0,0 +1,34 @@ +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