Sync Deck #195
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 Deck | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| repository_dispatch: | |
| types: [PLUGINS_UPDATED] | |
| permissions: | |
| contents: read | |
| jobs: | |
| deck-versions: | |
| name: Fetch Deck Versions | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 | |
| with: | |
| egress-policy: audit | |
| - name: Create GitHub App Token | |
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf | |
| id: app-token | |
| with: | |
| app-id: ${{ vars.GH_APP_KONG_DOCS_ID }} | |
| private-key: ${{ secrets.GH_APP_KONG_DOCS_SECRET }} | |
| owner: Kong | |
| - uses: Kong/setup-deck@v1 | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| - name: Fetch OAS Data | |
| run: | | |
| cd tools/deck-versions | |
| npm ci | |
| node extract-help.js | |
| node fetch-versions.js | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8 | |
| with: | |
| title: Sync Deck Releases | |
| commit-message: Sync Deck Releases | |
| labels: skip-changelog,review:general | |
| token: ${{ steps.app-token.outputs.token }} |