mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-02-02 08:33:37 +00:00
Adds a GitHub Actions workflow that runs on PRs when .claude-plugin/marketplace.json is modified. The workflow uses jq to validate the JSON structure. Related Slack thread: https://anthropic.slack.com/archives/C09KU300P7F/p1769756203361729
24 lines
548 B
YAML
24 lines
548 B
YAML
name: Validate Marketplace JSON
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.claude-plugin/marketplace.json'
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Validate marketplace.json
|
|
run: |
|
|
echo "Validating .claude-plugin/marketplace.json..."
|
|
if jq empty .claude-plugin/marketplace.json 2>&1; then
|
|
echo "Valid JSON"
|
|
else
|
|
echo "Invalid JSON in .claude-plugin/marketplace.json"
|
|
exit 1
|
|
fi
|