From 586a59f7c91f4d3b5fd0fd822bd05c72728a49b9 Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Tue, 2 Jan 2024 18:49:00 +0000 Subject: [PATCH] Create generate-swagger.yaml --- .github/workflows/generate-swagger.yaml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/generate-swagger.yaml diff --git a/.github/workflows/generate-swagger.yaml b/.github/workflows/generate-swagger.yaml new file mode 100644 index 00000000..79aaef4c --- /dev/null +++ b/.github/workflows/generate-swagger.yaml @@ -0,0 +1,26 @@ +name: "Generate Swagger Docs" + +on: + pull_request: + branches: [main] + + push: + branches: [spoorthi/generate-swagger-before-release] + +jobs: + generate: + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - uses: actions/checkout@v3 + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + proto: + - 'proto/**' + + - name: Generate Swagger File + if: steps.filter.outputs.proto == 'true' + run: make proto-swagger-gen \ No newline at end of file