0828f197a8
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
35 lines
858 B
YAML
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
|