1818 runs-on : ubuntu-latest
1919
2020 steps :
21+ - name : Generate access token
22+ id : generate-token
23+ uses : actions/create-github-app-token@v1
24+ with :
25+ app-id : ${{ secrets.OAI_SPEC_PUBLISHER_APPID }}
26+ private-key : ${{ secrets.OAI_SPEC_PUBLISHER_PRIVATE_KEY }}
27+ owner : OAI
28+ repositories : OpenAPI-Specification
29+
2130 - uses : actions/checkout@v4 # checkout main branch
2231 with :
2332 fetch-depth : 0
3140
3241 - uses : actions/checkout@v4 # checkout gh-pages branch
3342 with :
34- token : ${{ secrets.OAS_REPO_TOKEN }}
43+ token : ${{ steps.generate-token.outputs.token }}
3544 repository : OAI/OpenAPI-Specification
3645 ref : gh-pages
3746 path : deploy
@@ -42,16 +51,14 @@ jobs:
4251 - name : Create Pull Request
4352 uses : peter-evans/create-pull-request@v7
4453 with :
45- # A personal access token is required to push changes to the repository.
46- # This token needs to be refreshed regularly and stored in the repository secrets.
47- token : ${{ secrets.OAS_REPO_TOKEN }}
54+ token : ${{ steps.generate-token.outputs.token }}
4855 branch : publish-overlay-schema-iteration
4956 base : gh-pages
5057 delete-branch : true
5158 path : deploy
5259 labels : Housekeeping,Schema
53- reviewers : darrelmiller,webron,earth2marsh,lornajane,mikekistler,miqui,handrews
54- title : Publish Overlay Schema Iterations
60+ reviewers : darrelmiller,webron,earth2marsh,lornajane,mikekistler,miqui,handrews,ralfhandl
61+ title : Overlay - Publish Schema Iterations
5562 commit-message : New Overlay schema iterations
5663 signoff : true
5764 body : |
0 commit comments