@@ -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
1111on :
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
1721jobs :
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.
0 commit comments