11name : respec
22
3- # author: @MikeRalphson
3+ # author: @MikeRalphson, @ralfhandl
44# issue: https://github.com/OAI/OpenAPI-Specification/issues/1564
55
66#
7- # This workflow updates the respec 'pretty' rendered versions of the spec
8- # on the gh-pages branch when the corresponding markdown files change.
7+ # This workflow creates a pull request for publishing HTML spec versions to the spec.openapis.org site.
98#
109
11- # run this on push of new spec versions to main
10+ # run this manually or on push of new spec versions to main
1211on :
1312 push :
1413 paths :
3130 app-id : ${{ secrets.OAI_SPEC_PUBLISHER_APPID }}
3231 private-key : ${{ secrets.OAI_SPEC_PUBLISHER_PRIVATE_KEY }}
3332 owner : OAI
34- repositories : OpenAPI-Specification
33+ repositories : spec.openapis.org
3534
36- - uses : actions/checkout@v5 # checkout main branch
35+ - uses : actions/checkout@v5 # checkout main branch of this repo
3736 with :
3837 fetch-depth : 0
3938
@@ -44,11 +43,11 @@ jobs:
4443 - name : Install dependencies
4544 run : npm ci
4645
47- - uses : actions/checkout@v5 # checkout gh-pages branch
46+ - uses : actions/checkout@v5 # checkout main branch of website repo
4847 with :
4948 token : ${{ steps.generate-token.outputs.token }}
50- repository : OAI/OpenAPI-Specification # TODO: change to OAI/...
51- ref : gh-pages
49+ repository : OAI/spec.openapis.org
50+ ref : main
5251 path : deploy
5352
5453 - name : run main script
@@ -58,16 +57,16 @@ jobs:
5857 uses : peter-evans/create-pull-request@v7
5958 with :
6059 token : ${{ steps.generate-token.outputs.token }}
61- branch : update- overlay-respec-version
62- base : gh-pages
60+ branch : overlay-spec-versions
61+ base : main
6362 delete-branch : true
6463 path : deploy
65- labels : Housekeeping
66- reviewers : darrelmiller,webron, earth2marsh,lornajane,mikekistler,miqui,handrews ,ralfhandl
67- title : Overlay - Update ReSpec-rendered specification versions
64+ labels : Overlay,Specification
65+ reviewers : earth2marsh,lornajane,mikekistler,miqui,baywet ,ralfhandl
66+ title : Overlay - update ReSpec-rendered specification versions
6867 commit-message : Update ReSpec-rendered specification versions
6968 signoff : true
7069 body : |
71- This pull request is automatically triggered by GitHub action `respec` in the OAI/Overlay-Specification repo.
70+ This pull request is automatically generated by GitHub action `respec` in the OAI/Overlay-Specification repo.
7271
73- The `versions/*.md` files have changed, so the HTML files are automatically being regenerated.
72+ The `versions/*.md` files of the OpenAPI Specification have changed and the corresponding HTML files are regenerated.
0 commit comments