Skip to content

Merge pull request #318 from OAI/v1.0.1-rel #9

Merge pull request #318 from OAI/v1.0.1-rel

Merge pull request #318 from OAI/v1.0.1-rel #9

Workflow file for this run

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-22.04
steps:
- name: Generate access token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.OAI_SPEC_PUBLISHER_APPID }}
private-key: ${{ secrets.OAI_SPEC_PUBLISHER_PRIVATE_KEY }}
owner: OAI
repositories: OpenAPI-Specification
- uses: actions/checkout@v4 # checkout main branch
with:
fetch-depth: 0
- uses: actions/setup-node@v4 # setup Node.js
with:
node-version: '20.x'
- name: Install dependencies
run: npm ci
- uses: actions/checkout@v4 # checkout gh-pages branch
with:
token: ${{ steps.generate-token.outputs.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@v6
with:
token: ${{ steps.generate-token.outputs.token }}
branch: update-arazzo-respec-version
base: gh-pages
delete-branch: true
path: deploy
labels: Housekeeping
reviewers: darrelmiller,webron,earth2marsh,webron,lornajane,mikekistler,miqui,handrews,karenetheridge,ralfhandl
title: Arazzo - Update ReSpec-rendered specification versions
commit-message: Update ReSpec-rendered specification versions
signoff: true
body: |
This pull request is automatically triggered by GitHub action `respec`.
The `versions/*.md` files of the Arazzo Specification have changed, so the HTML files are automatically being regenerated.