Skip to content

Sync Documentation #144

Sync Documentation

Sync Documentation #144

Workflow file for this run

name: Sync Documentation
on:
schedule:
# Run daily at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
sync-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Run documentation sync script
run: |
chmod +x scripts/pull-docs.sh
./scripts/pull-docs.sh
- name: Check for changes
id: git-check
run: |
git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT
- name: Commit and push changes
if: steps.git-check.outputs.changes == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git commit -m "chore: sync documentation from source repositories"
git push