name: Build OpenClaw Skill on: push: branches: [main] paths: - 'SKILL.md' - 'references/**' - 'scripts/**' - 'toolkit/**' - 'personas/**' - 'requirements.txt' - '*.example.yaml' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.11' - name: Build OpenClaw skill run: python3 scripts/build_openclaw.py - name: Commit dist/openclaw if changed run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add dist/openclaw/ if git diff --cached --quiet; then echo "No changes to commit" else git commit -m "chore: rebuild dist/openclaw from source" git push fi