From 72517c0f9cd4bf3a2093a17a0c0d5b2538bf7bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= <76261501+zecakeh@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:21:38 +0200 Subject: [PATCH] Generate server-server OpenAPI definition (#1657) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- .github/workflows/main.yml | 5 +++++ changelogs/internal/newsfragments/1657.feature | 1 + 2 files changed, 6 insertions(+) create mode 100644 changelogs/internal/newsfragments/1657.feature diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4fc6a960..0bdf4155 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -107,6 +107,11 @@ jobs: --api push-gateway \ -r "$RELEASE" \ -o spec/push-gateway-api/api.json + scripts/dump-openapi.py \ + --base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \ + --api server-server \ + -r "$RELEASE" \ + -o spec/server-server-api/api.json tar -czf openapi.tar.gz spec - name: "📤 Artifact upload" uses: actions/upload-artifact@v2 diff --git a/changelogs/internal/newsfragments/1657.feature b/changelogs/internal/newsfragments/1657.feature new file mode 100644 index 00000000..c5d8155d --- /dev/null +++ b/changelogs/internal/newsfragments/1657.feature @@ -0,0 +1 @@ +Generate server-server OpenAPI definition.