File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 22
22
runs-on : ubuntu-latest
23
23
24
24
steps :
25
+ - name : Generate access token
26
+ id : generate-token
27
+ uses : actions/create-github-app-token@v1
28
+ with :
29
+ app-id : ${{ secrets.OAI_SPEC_PUBLISHER_APPID }}
30
+ private-key : ${{ secrets.OAI_SPEC_PUBLISHER_PRIVATE_KEY }}
31
+ owner : OAI
32
+ repositories : OpenAPI-Specification
33
+
25
34
- uses : actions/checkout@v4 # checkout main branch
26
35
with :
27
36
fetch-depth : 0
35
44
36
45
- uses : actions/checkout@v4 # checkout gh-pages branch
37
46
with :
38
- token : ${{ secrets.OAS_REPO_TOKEN }}
39
- repository : OAI/OpenAPI-Specification # TODO: change to OAI/...
47
+ token : ${{ steps.generate-token.outputs.token }}
48
+ repository : OAI/OpenAPI-Specification
40
49
ref : gh-pages
41
50
path : deploy
42
51
@@ -46,16 +55,14 @@ jobs:
46
55
- name : Create Pull Request
47
56
uses : peter-evans/create-pull-request@v7
48
57
with :
49
- # A personal access token is required to push changes to the repository.
50
- # This token needs to be refreshed regularly and stored in the repository secrets.
51
- token : ${{ secrets.OAS_REPO_TOKEN }}
58
+ token : ${{ steps.generate-token.outputs.token }}
52
59
branch : update-overlay-respec-version
53
60
base : gh-pages
54
61
delete-branch : true
55
62
path : deploy
56
63
labels : Housekeeping
57
64
team-reviewers : OAI/tsc
58
- title : Update ReSpec-rendered specification versions for Overlay
65
+ title : Overlay - Update ReSpec-rendered specification versions
59
66
commit-message : Update ReSpec-rendered specification versions
60
67
signoff : true
61
68
body : |
You can’t perform that action at this time.
0 commit comments