@@ -42,30 +42,21 @@ jobs:
4242 path : rest-api-description
4343 ref : ${{ inputs.SOURCE_BRANCH }}
4444
45- - name : Generate GitHub App token
46- id : app-token
47- uses : actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
48- with :
49- app-id : ${{ secrets.DOCS_BOT_APP_ID }}
50- private-key : ${{ secrets.DOCS_BOT_APP_PRIVATE_KEY }}
51- owner : github
52- repositories : docs-internal,models-gateway,docs-engineering
53-
5445 - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5546 with :
5647 # By default, only the most recent commit of the `main` branch
5748 # will be checked out
5849 repository : github/models-gateway
5950 path : models-gateway
6051 ref : main
61- token : ${{ steps.app-token.outputs.token }}
52+ token : ${{ secrets.DOCS_BOT_PAT_BASE }}
6253
6354 - uses : ./.github/actions/node-npm-setup
6455
6556 - name : Sync the REST, Webhooks, and GitHub Apps schemas
6657 env :
6758 # Needed for gh
68- GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
59+ GITHUB_TOKEN : ${{ secrets.DOCS_BOT_PAT_BASE }}
6960 NODE_OPTIONS : ' --max-old-space-size=8192'
7061 run : |
7162 npm run sync-rest -- \
8980 - name : Create pull request
9081 env :
9182 # Needed for gh
92- GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
83+ GITHUB_TOKEN : ${{ secrets.DOCS_BOT_PAT_BASE }}
9384 run : |
9485 # If nothing to commit, exit now. It's fine. No orphans.
9586 changes=$(git diff --name-only | wc -l)
@@ -137,4 +128,4 @@ jobs:
137128 - uses : ./.github/actions/create-workflow-failure-issue
138129 if : ${{ failure() && github.event_name != 'workflow_dispatch' }}
139130 with :
140- token : ${{ steps.app-token.outputs.token }}
131+ token : ${{ secrets.DOCS_BOT_PAT_BASE }}
0 commit comments