This repository was archived by the owner on Nov 10, 2025. It is now read-only.
build: upgrade mcpadapt version (#323) #2
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: Generate Tool Specifications | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| generate-specs: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| specs_changed: ${{ steps.check_changes.outputs.specs_changed }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.12.8 | |
| - name: Install the project | |
| run: uv sync --dev --all-extras | |
| - name: Generate tool specifications | |
| run: python generate_tool_specs.py | |
| - name: Configure Git and add upstream | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git remote add upstream https://github.com/crewAIInc/crewAI-tools.git | |
| git fetch upstream | |
| - name: Check for changes in tool specifications | |
| id: check_changes | |
| run: | | |
| git add tool.specs.json | |
| if git diff --quiet --staged; then | |
| echo "No changes detected in tool.specs.json" | |
| echo "specs_changed=false" >> $GITHUB_OUTPUT | |
| else | |
| echo "Changes detected in tool.specs.json" | |
| echo "specs_changed=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Commit and push if changed | |
| if: steps.check_changes.outputs.specs_changed == 'true' | |
| run: | | |
| git commit -m "Update tool specifications for $(git describe --tags --abbrev=0)" | |
| git push | |
| notify-api: | |
| needs: generate-specs | |
| if: needs.generate-specs.outputs.specs_changed == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Notify API about tool specification update | |
| run: | | |
| curl -X POST https://app.crewai.com/crewai_plus/api/v1/internal_tool_releases \ | |
| -H "Content-Type: application/json" | |
| -H "Authorization: Bearer ${{ secrets.CREWAI_RELEASE_TOOL_API_KEY }}" |