name: Update Specs on: workflow_dispatch: jobs: update-specs: runs-on: ubuntu-latest steps: - name: Generate GitHub App Token id: app-token uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 with: app-id: ${{ secrets.BOT_APP_ID }} private-key: ${{ secrets.BOT_PRIVATE_KEY }} - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: token: ${{ steps.app-token.outputs.token }} - name: Setup Node.js uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 with: node-version-file: ".node-version" cache: "npm" - name: Install dependencies run: npm ci - name: Update specs run: npm run update-specs - name: Create Pull Request uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0 with: token: ${{ steps.app-token.outputs.token }} commit-message: "chore: update spec versions" title: "chore: update spec versions" body: | Automated update of spec versions from upstream repository. This PR was created by the update-specs workflow. branch: update-specs delete-branch: true add-paths: | src/content/spec/*