name: Build OpenClaw Skill on: workflow_dispatch: push: branches: [main] paths: - 'SKILL.md' - 'references/**' - 'scripts/**' - 'toolkit/**' - 'personas/**' - 'requirements.txt' - '*.example.yaml' permissions: contents: write jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - 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 --amend --no-edit git push --force-with-lease fi