Skip to content

Commit 92e5fc9

Browse files
authored
Merge pull request #4361 from ralfhandl/dev-schemas-live-in-src
dev: schemas live in src folder
2 parents 35b2333 + 90f9f2f commit 92e5fc9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+78
-5399
lines changed

Diff for: .github/workflows/schema-publish.yaml

+12-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ name: schema-publish
44
# issue: https://github.com/OAI/OpenAPI-Specification/issues/3715
55

66
#
7-
# This workflow copies the 3.x schemas to the gh-pages branch
7+
# This workflow creates a pull request for publishing schema iterations to the gh-pages branch
88
#
99

10-
# run this on push to main
10+
# run this on push to vX.Y-dev branches or manually
1111
on:
1212
push:
1313
branches:
14-
- main
14+
- 'v?.?-dev'
15+
paths:
16+
- 'src/schemas/validation/*.yaml'
17+
- 'scripts/schema-publish.sh'
18+
- '.github/workflows/schema-publish.yaml'
1519
workflow_dispatch: {}
1620

1721
jobs:
@@ -26,7 +30,7 @@ jobs:
2630

2731
- uses: actions/setup-node@v4 # setup Node.js
2832
with:
29-
node-version: '20.x'
33+
node-version: '22.x'
3034

3135
- name: Install dependencies
3236
run: npm ci
@@ -43,15 +47,15 @@ jobs:
4347
uses: peter-evans/create-pull-request@v6
4448
with:
4549
token: ${{ secrets.GITHUB_TOKEN }}
46-
branch: publish-schema-iteration
50+
branch: ${{ github.ref_name }}-publish-schema-iteration
4751
base: gh-pages
4852
delete-branch: true
4953
path: deploy
5054
labels: Housekeeping,Schema
5155
reviewers: darrelmiller,webron,earth2marsh,webron,lornajane,mikekistler,miqui,ralfhandl,handrews,karenetheridge
52-
title: Publish OpenAPI Schema Iterations
56+
title: '${{ github.ref_name }}: publish OpenAPI schema iterations'
5357
commit-message: New OpenAPI schema iterations
5458
signoff: true
5559
body: |
56-
This pull request is automatically triggered by GitHub action `schema-publish`.
57-
The `schemas/**/*.yaml` files have changed and JSON files are automatically generated.
60+
This pull request is automatically generated by GitHub action `schema-publish`.
61+
The `src/schemas/validation/*.yaml` files have changed and JSON files are automatically generated.

Diff for: schemas/v1.2/README.md

-5
This file was deleted.

Diff for: schemas/v1.2/apiDeclaration.json

-61
This file was deleted.

Diff for: schemas/v1.2/authorizationObject.json

-59
This file was deleted.

Diff for: schemas/v1.2/dataType.json

-132
This file was deleted.

Diff for: schemas/v1.2/dataTypeBase.json

-81
This file was deleted.

0 commit comments

Comments
 (0)