Skip to content

Commit 81cd15c

Browse files
committed
Make schema-publish.yaml on main a stub
This stub is necessary on main for manual triggering of the branch-specific schema-publish workflows
1 parent 8e3015a commit 81cd15c

File tree

1 file changed

+3
-39
lines changed

1 file changed

+3
-39
lines changed

.github/workflows/schema-publish.yaml

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ 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 stub workflow is needed to manually publish schema iterations from vX.Y-dev branches
88
#
99

1010
# run this on push to main
1111
on:
12-
push:
13-
branches:
14-
- main
1512
workflow_dispatch: {}
1613

1714
jobs:
@@ -20,38 +17,5 @@ jobs:
2017
runs-on: ubuntu-latest
2118

2219
steps:
23-
- uses: actions/checkout@v4 # checkout main branch
24-
with:
25-
fetch-depth: 0
26-
27-
- uses: actions/setup-node@v4 # setup Node.js
28-
with:
29-
node-version: '20.x'
30-
31-
- name: Install dependencies
32-
run: npm ci
33-
34-
- uses: actions/checkout@v4 # checkout gh-pages branch
35-
with:
36-
ref: gh-pages
37-
path: deploy
38-
39-
- name: run main script
40-
run: scripts/schema-publish.sh
41-
42-
- name: Create Pull Request
43-
uses: peter-evans/create-pull-request@v6
44-
with:
45-
token: ${{ secrets.GITHUB_TOKEN }}
46-
branch: publish-schema-iteration
47-
base: gh-pages
48-
delete-branch: true
49-
path: deploy
50-
labels: Housekeeping,Schema
51-
reviewers: darrelmiller,webron,earth2marsh,webron,lornajane,mikekistler,miqui,ralfhandl,handrews,karenetheridge
52-
title: Publish OpenAPI Schema Iterations
53-
commit-message: New OpenAPI schema iterations
54-
signoff: true
55-
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.
20+
- name: dummy
21+
run: echo Do nothing

0 commit comments

Comments
 (0)