chore: update catalog data files for v2026.03.05 (#846) #13
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: Publish Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'pkg/catalog/*/data/**' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| name: Publish Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate version | |
| id: metadata | |
| run: | | |
| echo "version=0.$(date +'%Y%m%d').0" >> $GITHUB_OUTPUT | |
| echo "date=$(date +'%Y.%m.%d')" >> $GITHUB_OUTPUT | |
| - name: Collect registry stats | |
| id: stats | |
| run: | | |
| for registry_dir in pkg/catalog/*/; do | |
| registry_name=$(basename "$registry_dir") | |
| data_file="$registry_dir/data/registry.json" | |
| [ -f "$data_file" ] || continue | |
| CONTAINER_COUNT=$(jq '.servers | length' "$data_file") | |
| REMOTE_COUNT=$(jq '.remote_servers | length // 0' "$data_file") | |
| TOTAL=$((CONTAINER_COUNT + REMOTE_COUNT)) | |
| LAST_UPDATED=$(jq -r '.last_updated' "$data_file") | |
| echo "${registry_name}_total=$TOTAL" >> $GITHUB_OUTPUT | |
| echo "${registry_name}_container=$CONTAINER_COUNT" >> $GITHUB_OUTPUT | |
| echo "${registry_name}_remote=$REMOTE_COUNT" >> $GITHUB_OUTPUT | |
| echo "${registry_name}_last_updated=$LAST_UPDATED" >> $GITHUB_OUTPUT | |
| done | |
| - name: Create or update release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: v${{ steps.metadata.outputs.version }} | |
| name: Catalog v${{ steps.metadata.outputs.date }} | |
| body: | | |
| ## ToolHive Catalog Release | |
| **Date**: ${{ steps.metadata.outputs.date }} | |
| **Last Updated**: ${{ steps.stats.outputs.toolhive_last_updated }} | |
| ### Statistics | |
| | Category | Count | | |
| |----------|-------| | |
| | **Total Servers** | ${{ steps.stats.outputs.toolhive_total }} | | |
| | **Container-based** | ${{ steps.stats.outputs.toolhive_container }} | | |
| | **Remote** | ${{ steps.stats.outputs.toolhive_remote }} | | |
| ### Usage | |
| ```sh | |
| go get github.com/stacklok/toolhive-catalog/pkg/catalog/toolhive@latest | |
| ``` | |
| ```go | |
| import "github.com/stacklok/toolhive-catalog/pkg/catalog/toolhive" | |
| // ToolHive legacy format | |
| data := toolhive.Legacy() | |
| // Upstream MCP format | |
| data := toolhive.Upstream() | |
| ``` | |
| --- | |
| *This is an automated release triggered by a catalog data update.* | |
| artifacts: | | |
| pkg/catalog/toolhive/data/registry.json | |
| pkg/catalog/toolhive/data/official-registry.json | |
| allowUpdates: true | |
| makeLatest: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |