From 2da61485a298a6129efddc1151b922d2dada7f58 Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Fri, 4 Apr 2025 15:09:43 +0200 Subject: [PATCH 1/2] respec workflow only on demand --- .github/workflows/respec.yaml | 5 +---- CONTRIBUTING.md | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/respec.yaml b/.github/workflows/respec.yaml index 0b62909990..74894de350 100644 --- a/.github/workflows/respec.yaml +++ b/.github/workflows/respec.yaml @@ -8,11 +8,8 @@ name: respec # on the gh-pages branch when the corresponding markdown files change. # -# run this on push to main +# run this manually from main on: - push: - branches: - - main workflow_dispatch: {} jobs: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index af61e86267..0fcb81017e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -218,7 +218,7 @@ The steps for creating a `vX.Y.Z-rel` branch are: 5. Merge `vX.Y.Z-rel` into `main` via PR - this PR should only add files `versions/X.Y.Z.md` and `versions/X.Y.Z-editors.md` -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). +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). ### Schema Iterations From 506fa0744473becf1c327fdd8a992c1c69758fce Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Mon, 7 Apr 2025 10:05:01 +0200 Subject: [PATCH 2/2] respec.yaml: only run on main --- .github/workflows/respec.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/respec.yaml b/.github/workflows/respec.yaml index 74894de350..e5982c9812 100644 --- a/.github/workflows/respec.yaml +++ b/.github/workflows/respec.yaml @@ -14,6 +14,7 @@ on: jobs: respec: + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest