-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (41 loc) · 1.29 KB
/
Copy pathvalidate-skill.yml
File metadata and controls
48 lines (41 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Validate SKILL.md
on:
pull_request:
paths:
- '**/SKILL.md'
- 'templates/**'
- 'scripts/validate-skill.js'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Validate changed SKILL.md files
run: |
CHANGED_FILES=$(git diff --name-only origin/main...HEAD | grep 'SKILL.md$' || true)
if [ -z "$CHANGED_FILES" ]; then
echo "No SKILL.md files changed, skipping validation."
exit 0
fi
echo "Validating changed SKILL.md files:"
echo "$CHANGED_FILES"
echo ""
FAILED=0
for file in $CHANGED_FILES; do
if [ -f "$file" ]; then
node scripts/validate-skill.js "$file" || FAILED=1
else
echo "WARNING: File $file not found (may have been deleted)"
fi
done
exit $FAILED
- name: Validate source manifest and orchestrator references
run: |
node scripts/build-source-manifest.js
node scripts/validate-source-manifest.js
node scripts/validate-orchestrators.js
node scripts/validate-contracts.js