Bump agent-skills submodule #163
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: Bump agent-skills submodule | |
| on: | |
| schedule: | |
| - cron: "30 3 * * *" # Nightly (UTC) at 03:30 | |
| workflow_dispatch: | |
| concurrency: | |
| group: bump-agent-skills-submodule | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| bump-submodule: | |
| name: Bump ext/agent-skills to latest release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: mongodb-js/devtools-shared/actions/setup-bot-token@main | |
| id: app-token | |
| with: | |
| app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }} | |
| private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }} | |
| - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 | |
| with: | |
| ref: main | |
| fetch-depth: 0 | |
| submodules: recursive | |
| token: ${{ steps.app-token.outputs.token }} | |
| - uses: ./.github/workflows/actions/setup-node-environment | |
| - name: Point submodule at latest mongodb/agent-skills release | |
| id: bump | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| run: pnpm run bump-agent-skills-submodule | |
| shell: bash | |
| - name: Run sync-skills | |
| if: steps.bump.outputs.bumped == 'true' | |
| run: pnpm run sync-skills | |
| shell: bash | |
| - name: Create Pull Request | |
| if: steps.bump.outputs.bumped == 'true' | |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # 8.1.1 | |
| with: | |
| commit-message: 'chore: bump agent-skills submodule to ${{ steps.bump.outputs.tag }}' | |
| base: main | |
| branch: ci/bump-agent-skills-submodule | |
| title: 'chore: bump agent-skills submodule to ${{ steps.bump.outputs.tag }}' | |
| add-paths: | | |
| ext/agent-skills | |
| package.json | |
| body: | | |
| Nightly workflow: `pnpm run bump-agent-skills-submodule` then `pnpm run sync-skills` — updates `ext/agent-skills` to [mongodb/agent-skills](https://github.com/mongodb/agent-skills) `${{ steps.bump.outputs.tag }}` and refreshes `package.json`. | |
| token: ${{ steps.app-token.outputs.token }} | |
| author: "${{ steps.app-token.outputs.app-slug}}[bot] <${{ steps.app-token.outputs.app-email }}>" | |
| committer: "${{ steps.app-token.outputs.app-slug}}[bot] <${{ steps.app-token.outputs.app-email }}>" |