Skip to content

Commit 4709f40

Browse files
authored
Merge pull request #4531 from ralfhandl/main-run-respec-workflow-only-on-demand
main: respec workflow only on demand
2 parents 748a9d7 + 506fa07 commit 4709f40

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/respec.yaml

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ name: respec
88
# on the gh-pages branch when the corresponding markdown files change.
99
#
1010

11-
# run this on push to main
11+
# run this manually from main
1212
on:
13-
push:
14-
branches:
15-
- main
1613
workflow_dispatch: {}
1714

1815
jobs:
1916
respec:
17+
if: github.ref == 'refs/heads/main'
2018

2119
runs-on: ubuntu-latest
2220

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ The steps for creating a `vX.Y.Z-rel` branch are:
218218
5. Merge `vX.Y.Z-rel` into `main` via PR
219219
- this PR should only add files `versions/X.Y.Z.md` and `versions/X.Y.Z-editors.md`
220220

221-
The HTML renderings of the specification versions are automatically generated from the `versions` directory on `main` by the [`respec` workflow](https://github.com/OAI/OpenAPI-Specification/blob/main/.github/workflows/respec.yaml), which generates a pull request for publishing the HTML renderings to the [spec site](https://spec.openapis.org).
221+
The HTML renderings of the specification versions are generated from the `versions` directory on `main` by manually triggering the [`respec` workflow](https://github.com/OAI/OpenAPI-Specification/blob/main/.github/workflows/respec.yaml), which generates a pull request for publishing the HTML renderings to the [spec site](https://spec.openapis.org).
222222

223223
### Schema Iterations
224224

0 commit comments

Comments
 (0)