refactor(code-review-tools): remove redundant review command and update config #21
Workflow file for this run
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: CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate-plugins: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get modified plugins | |
| id: changed-plugins | |
| run: | | |
| plugins=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- 'plugins/' | \ | |
| grep -oE 'plugins/[^/]+' | sort -u || true) | |
| echo "plugins<<EOF" >> $GITHUB_OUTPUT | |
| echo "$plugins" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| - name: Validate modified plugins | |
| if: steps.changed-plugins.outputs.plugins != '' | |
| run: | | |
| failed=0 | |
| while IFS= read -r plugin_dir; do | |
| [ -z "$plugin_dir" ] && continue | |
| if [ -f "${plugin_dir}/.claude-plugin/plugin.json" ]; then | |
| echo "Validating: $plugin_dir" | |
| if ! bash scripts/validate-plugin.sh "$plugin_dir"; then | |
| failed=1 | |
| fi | |
| fi | |
| done <<< "${{ steps.changed-plugins.outputs.plugins }}" | |
| exit $failed |