Add OpenClaw installation troubleshooting bundle #10
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: Validate PR | |
| on: | |
| pull_request: | |
| paths: | |
| - "skills/**" | |
| - "bundles/**" | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - run: npm ci | |
| - name: Check for registry.json changes | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| if gh pr diff ${{ github.event.pull_request.number }} --name-only | grep -q '^registry\.json$'; then | |
| echo "registry.json should not be modified directly — it is auto-generated." | tee validation-output.txt | |
| exit 1 | |
| fi | |
| - name: Validate manifests | |
| id: validate | |
| run: npm run validate 2>&1 | tee validation-output.txt | |
| - name: Comment on success | |
| if: success() | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const fs = require('fs'); | |
| const output = fs.readFileSync('validation-output.txt', 'utf8'); | |
| const body = `### Validation passed\n\n\`\`\`\n${output}\n\`\`\``; | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body | |
| }) | |
| - name: Comment on failure | |
| if: failure() | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const fs = require('fs'); | |
| const output = fs.readFileSync('validation-output.txt', 'utf8'); | |
| const body = `### Validation failed\n\nPlease fix the following errors:\n\n\`\`\`\n${output}\n\`\`\``; | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body | |
| }) |