Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/respec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: respec

on:
workflow_dispatch: {}

jobs:
respec:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest

steps:
- name: Generate access token
id: generate-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ secrets.OAI_SPEC_PUBLISHER_APPID }}
private-key: ${{ secrets.OAI_SPEC_PUBLISHER_PRIVATE_KEY }}
owner: OAI
repositories: spec.openapis.org

- uses: actions/checkout@v7
with:
fetch-depth: 0

- uses: actions/setup-node@v6
with:
node-version: "24.x"

- name: Install dependencies
run: npm ci

- uses: actions/checkout@v7
with:
token: ${{ steps.generate-token.outputs.token }}
repository: OAI/spec.openapis.org
ref: main
path: deploy

- name: Build HTML
run: npm run build

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ steps.generate-token.outputs.token }}
branch: lifecycle-spec-versions
base: main
delete-branch: true
path: deploy
labels: Lifecycle,Specification
title: Lifecycle - update ReSpec-rendered specification versions
commit-message: Update ReSpec-rendered Lifecycle specification versions
signoff: true
body: |
This pull request is automatically generated by GitHub action `respec` in the OAI/sig-lifecycle repo.
59 changes: 59 additions & 0 deletions .github/workflows/schema-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: schema-publish

on:
push:
branches:
- "v[0-9].[0-9]-dev"
paths:
- "src/schemas/validation/*.yaml"
workflow_dispatch: {}

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Generate access token
id: generate-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ secrets.OAI_SPEC_PUBLISHER_APPID }}
private-key: ${{ secrets.OAI_SPEC_PUBLISHER_PRIVATE_KEY }}
owner: OAI
repositories: spec.openapis.org

- uses: actions/checkout@v7
with:
fetch-depth: 0

- uses: actions/setup-node@v6
with:
node-version: "24.x"

- name: Install dependencies
run: npm ci

- uses: actions/checkout@v7
with:
token: ${{ steps.generate-token.outputs.token }}
repository: OAI/spec.openapis.org
ref: main
path: deploy

- name: Publish schemas
run: npm run publish-schemas

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ steps.generate-token.outputs.token }}
branch: lifecycle-${{ github.ref_name }}-schema-iterations
base: main
delete-branch: true
path: deploy
labels: Lifecycle,Schema
title: "Lifecycle - publish ${{ github.ref_name }} schema iterations"
commit-message: "New Lifecycle schema iterations published from ${{ github.ref_name }}"
signoff: true
body: |
This pull request is automatically generated by GitHub action `schema-publish` in the OAI/sig-lifecycle repo.
26 changes: 26 additions & 0 deletions .github/workflows/schema-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: schema-test

on:
pull_request: {}
workflow_dispatch: {}

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0

- uses: actions/setup-node@v6
with:
node-version: "24.x"

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test
env:
BASE: ${{ github.event.pull_request.base.ref }}
21 changes: 21 additions & 0 deletions .github/workflows/validate-markdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: validate-markdown

on:
- pull_request

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v6
with:
node-version: "24.x"

- name: Install dependencies
run: npm ci

- name: Validate Markdown
run: npm run validate-markdown
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
coverage/
deploy-preview/
deploy/
7 changes: 7 additions & 0 deletions .linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
files:
- src/lifecycle.md
- EDITORS.md
- README.md
ignorePatterns:
- pattern: 'clientdomain.com'
- pattern: 'example.org'
11 changes: 11 additions & 0 deletions EDITORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Editors

* Henry Andrews [@handrews](https://github.com/handrews)
* Jeremy Whitlock [@whitlockjc](https://github.com/whitlockjc)
* Lorna Mitchell [@lornajane](https://github.com/lornajane)
* Marsh Gardiner [@earth2marsh](https://github.com/earth2marsh)
* Miguel Quintero [@miqui](https://github.com/miqui)
* Mike Kistler [@mikekistler](https://github.com/mikekistler)
* Ralf Handl [@ralfhandl](https://github.com/ralfhandl)

## Emeritus Editors
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# sig-lifecycle
# sig-lifecycle

This repository uses the shared OpenAPI Initiative build, test, schema
publication, and release tooling from
[OAI/build-infra](https://github.com/OAI/build-infra). See the
[build-infra README](https://github.com/OAI/build-infra/blob/main/README.md) and
[build-infra CONTRIBUTING guide](https://github.com/OAI/build-infra/blob/main/CONTRIBUTING.md)
for command and maintenance documentation.
Loading