sync-skills #4171
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: sync-skills | |
| on: | |
| schedule: | |
| - cron: "*/30 * * * *" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: write | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Sync skills from OpenClaw | |
| run: go run ./cmd/sync-skills | |
| - name: Commit & push if changed | |
| run: | | |
| if git diff --quiet; then | |
| echo "No changes" | |
| exit 0 | |
| fi | |
| git config user.name "openclaw-ci" | |
| git config user.email "ci@openclaw.local" | |
| git add -A | |
| git commit -m "sync skills from openclaw" | |
| git push |