Add hyperledger-fabric-developer subagent #9
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: Validate Subagents | |
| on: | |
| push: | |
| # Run on pushes to any branch | |
| branches: [ '**' ] | |
| pull_request: | |
| paths: | |
| - '*.md' | |
| - '!README.md' | |
| - '!CONTRIBUTING.md' | |
| - '.github/workflows/validate-subagents.yml' | |
| - 'scripts/**' | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies | |
| run: | | |
| npm init -y | |
| npm install gray-matter ajv glob chalk | |
| - name: Run validation | |
| run: node scripts/validate-subagents.js | |
| - name: Check for naming inconsistencies | |
| run: | | |
| # Check if any files have mismatched names | |
| for file in *.md; do | |
| if [[ "$file" != "README.md" && "$file" != "CONTRIBUTING.md" && "$file" != "LICENSE" ]]; then | |
| name=$(grep -E "^name:" "$file" | sed 's/name: //') | |
| expected="${file%.md}" | |
| if [[ "$name" != "$expected" ]]; then | |
| echo "❌ File $file has name field '$name' but should be '$expected'" | |
| exit 1 | |
| fi | |
| fi | |
| done | |
| echo "✅ All file names match their name fields" | |
| - name: Upload validation report | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: validation-report | |
| path: validation-report.txt |