-
Notifications
You must be signed in to change notification settings - Fork 44
62 lines (48 loc) · 1.53 KB
/
respec.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: respec
# author: @frankkilcommins (inspired by work from @MikeRalphson)
#
# This workflow updates the respec 'pretty' rendered versions of the spec
# on the gh-pages branch when the corresponding markdown files change.
#
# run this on push to main
on:
push:
paths:
- 'versions/**'
branches:
- main
workflow_dispatch: {}
jobs:
respec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 # checkout main branch
with:
fetch-depth: 0
- name: Install dependencies
run: npm i
- uses: actions/checkout@v2 # checkout gh-pages branch
with:
token: ${{ secrets.OAS_REPO_TOKEN }}
repository: OAI/OpenAPI-Specification
ref: gh-pages
path: deploy
- name: run main script
run: scripts/md2html/build.sh
# need to create a pull request against a reomte repository here
# to update the gh-pages branch on the OAI repo
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.OAS_REPO_TOKEN }}
branch: update-respec-version
base: gh-pages
delete-branch: true
path: deploy
labels: Housekeeping
title: Update ReSpec versions for Arazzo
commit-message: Update ReSpec versions
signoff: true
body: |
This pull request is automatically triggered by GitHub action `respec`.
The versions/v*.md files of the Arazzo Specification have changed, so the HTML files are automatically being regenerated.