18
18
runs-on : ubuntu-latest
19
19
20
20
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
+
21
30
- uses : actions/checkout@v4 # checkout main branch
22
31
with :
23
32
fetch-depth : 0
31
40
32
41
- uses : actions/checkout@v4 # checkout gh-pages branch
33
42
with :
34
- token : ${{ secrets.OAS_REPO_TOKEN }}
43
+ token : ${{ steps.generate-token.outputs.token }}
35
44
repository : OAI/OpenAPI-Specification
36
45
ref : gh-pages
37
46
path : deploy
@@ -42,16 +51,14 @@ jobs:
42
51
- name : Create Pull Request
43
52
uses : peter-evans/create-pull-request@v7
44
53
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 }}
48
55
branch : publish-arazzo-schema-iteration
49
56
base : gh-pages
50
57
delete-branch : true
51
58
path : deploy
52
59
labels : Housekeeping,Schema
53
- reviewers : darrelmiller,webron,earth2marsh,lornajane,mikekistler,miqui,handrews
54
- title : Publish Arazzo Schema Iterations
60
+ reviewers : darrelmiller,webron,earth2marsh,lornajane,mikekistler,miqui,handrews,ralfhandl
61
+ title : Arazzo - Publish Schema Iterations
55
62
commit-message : New Arazzo schema iterations
56
63
signoff : true
57
64
body : |
0 commit comments