File tree 1 file changed +55
-0
lines changed
1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : respec
2
+
3
+ # author: @MikeRalphson
4
+ # issue: https://github.com/OAI/OpenAPI-Specification/issues/1564
5
+
6
+ #
7
+ # This workflow updates the respec 'pretty' rendered versions of the spec
8
+ # on the gh-pages branch when the corresponding markdown files change.
9
+ #
10
+
11
+ # run this on push to main
12
+ on :
13
+ push :
14
+ branches :
15
+ - main
16
+ workflow_dispatch : {}
17
+
18
+ jobs :
19
+ respec :
20
+
21
+ runs-on : ubuntu-latest
22
+
23
+ steps :
24
+ - uses : actions/checkout@v2 # checkout main branch
25
+
26
+ - name : Install dependencies
27
+ run : npm i
28
+
29
+ - uses : actions/checkout@v2 # checkout gh-pages branch
30
+ with :
31
+ ref : gh-pages
32
+ path : deploy
33
+
34
+ - name : run main script
35
+ run : scripts/md2html/build.sh
36
+
37
+ - name : Create Pull Request
38
+ uses : peter-evans/create-pull-request@v3
39
+ with :
40
+ token : ${{ secrets.GITHUB_TOKEN }}
41
+ branch : update-respec-version
42
+ base : gh-pages
43
+ delete-branch : true
44
+ path : deploy
45
+ labels : Housekeeping
46
+ reviewers : webron,darrelmiller
47
+ title : Update ReSpec versions
48
+ commit-message : Update ReSpec versions
49
+ signoff : true
50
+ body : |
51
+ This pull request is automatically triggered by GitHub action `respec`.
52
+
53
+ The versions/v*.md files have changed, so the HTML files are automatically being regenerated.
54
+
55
+
You can’t perform that action at this time.
0 commit comments