-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 1.07 KB
/
validate.yml
File metadata and controls
29 lines (25 loc) · 1.07 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
name: Validate
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate gemini-extension.json is well-formed JSON
run: jq empty gemini-extension.json
- name: Detect SKILL.md drift from canonical (npm/ship/SKILL.md)
# The canonical SKILL.md lives next to the @shipstatic/ship CLI it teaches.
# This plugin's copy must stay byte-identical — drift = stale instructions.
run: |
curl -fsSL https://raw.githubusercontent.com/shipstatic/ship/main/SKILL.md \
-o /tmp/canonical-SKILL.md
if ! diff -q /tmp/canonical-SKILL.md skills/using-ship/SKILL.md; then
echo "::error title=SKILL drift detected::skills/using-ship/SKILL.md has drifted from https://github.com/shipstatic/ship/blob/main/SKILL.md. Sync with: cp ../../npm/ship/SKILL.md skills/using-ship/SKILL.md"
diff /tmp/canonical-SKILL.md skills/using-ship/SKILL.md || true
exit 1
fi