@@ -4,14 +4,18 @@ name: schema-publish
4
4
# issue: https://github.com/OAI/OpenAPI-Specification/issues/3715
5
5
6
6
#
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
8
8
#
9
9
10
- # run this on push to main
10
+ # run this on push to vX.Y-dev branches or manually
11
11
on :
12
12
push :
13
13
branches :
14
- - main
14
+ - ' v?.?-dev'
15
+ paths :
16
+ - ' src/schemas/validation/*.yaml'
17
+ - ' scripts/schema-publish.sh'
18
+ - ' .github/workflows/schema-publish.yaml'
15
19
workflow_dispatch : {}
16
20
17
21
jobs :
26
30
27
31
- uses : actions/setup-node@v4 # setup Node.js
28
32
with :
29
- node-version : ' 20 .x'
33
+ node-version : ' 22 .x'
30
34
31
35
- name : Install dependencies
32
36
run : npm ci
@@ -43,15 +47,15 @@ jobs:
43
47
uses : peter-evans/create-pull-request@v6
44
48
with :
45
49
token : ${{ secrets.GITHUB_TOKEN }}
46
- branch : publish-schema-iteration
50
+ branch : ${{ github.ref_name }}- publish-schema-iteration
47
51
base : gh-pages
48
52
delete-branch : true
49
53
path : deploy
50
54
labels : Housekeeping,Schema
51
55
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 '
53
57
commit-message : New OpenAPI schema iterations
54
58
signoff : true
55
59
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.
0 commit comments