mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-02-01 08:13:36 +00:00
Add CI workflow to validate marketplace.json is valid JSON
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
This commit is contained in:
23
.github/workflows/validate-marketplace-json.yml
vendored
Normal file
23
.github/workflows/validate-marketplace-json.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
Reference in New Issue
Block a user