Sync AI Marketplace Submodule #25
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: Sync AI Marketplace Submodule | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| repository_dispatch: | |
| types: [AI_MARKETPLACE_UPDATED] | |
| permissions: | |
| contents: read | |
| jobs: | |
| sync-ai-marketplace-submodule: | |
| name: Sync AI Marketplace Submodule | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Create GitHub App Token | |
| uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 | |
| id: app-token | |
| with: | |
| app-id: ${{ vars.GH_APP_KONG_DOCS_ID }} | |
| private-key: ${{ secrets.GH_APP_KONG_DOCS_SECRET }} | |
| owner: Kong | |
| - name: Submodule Sync | |
| uses: mheap/submodule-sync-action@a06903a4e38f042f6f52cc88d184ec1c930ee12d # v1 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| path: app/.repos/ai-marketplace | |
| ref: main | |
| pr_branch: automated-skills-update | |
| base_branch: main | |
| target_branch: main |