From 3a1f0ac0f1162386610127309ea6696a77e7af9d Mon Sep 17 00:00:00 2001 From: Floris272 Date: Wed, 31 Jul 2024 16:58:54 +0200 Subject: [PATCH] fix api workflows --- .../workflows/generate-postman-collection.yml | 8 ++++---- .github/workflows/generate-sdks.yml | 16 ++++++++-------- .github/workflows/lint-oas.yml | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/generate-postman-collection.yml b/.github/workflows/generate-postman-collection.yml index d6f1778..f695fdc 100644 --- a/.github/workflows/generate-postman-collection.yml +++ b/.github/workflows/generate-postman-collection.yml @@ -12,11 +12,11 @@ on: jobs: run: runs-on: ubuntu-latest - strategy: - matrix: - version: [ 'v1' ] + # strategy: + # matrix: + # version: [ 'v1' ] - name: Run with version $ + name: Run with version v1 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/generate-sdks.yml b/.github/workflows/generate-sdks.yml index 21e9806..180db8c 100644 --- a/.github/workflows/generate-sdks.yml +++ b/.github/workflows/generate-sdks.yml @@ -12,11 +12,11 @@ on: jobs: run: runs-on: ubuntu-latest - strategy: - matrix: - version: [ 'v1' ] + # strategy: + # matrix: + # version: [ 'v1' ] - name: Run with version $ + name: Run with version v1 steps: - uses: actions/checkout@v4 @@ -30,13 +30,13 @@ jobs: id: vars run: echo ::set-output name=oas::./src/openapi.yaml - name: Validate schema - run: openapi-generator-cli validate -i $ + run: openapi-generator-cli validate -i ${{ steps.vars.outputs.oas }} - name: Generate Java client - run: openapi-generator-cli generate -i $ --global-property=modelTests=false,apiTests=false,modelDocs=false,apiDocs=false \ + run: openapi-generator-cli generate -i ${{ steps.vars.outputs.oas }} --global-property=modelTests=false,apiTests=false,modelDocs=false,apiDocs=false \ -o ./sdks/java -g java --additional-properties=dateLibrary=java8,java8=true,optionalProjectFile=false,optionalAssemblyInfo=false - name: Generate .NET client - run: openapi-generator-cli generate -i $ --global-property=modelTests=false,apiTests=false,modelDocs=false,apiDocs=false \ + run: openapi-generator-cli generate -i ${{ steps.vars.outputs.oas }} --global-property=modelTests=false,apiTests=false,modelDocs=false,apiDocs=false \ -o ./sdks/net -g csharp --additional-properties=optionalProjectFile=false,optionalAssemblyInfo=false - name: Generate Python client - run: openapi-generator-cli generate -i $ --global-property=modelTests=false,apiTests=false,modelDocs=false,apiDocs=false \ + run: openapi-generator-cli generate -i ${{ steps.vars.outputs.oas }} --global-property=modelTests=false,apiTests=false,modelDocs=false,apiDocs=false \ -o ./sdks/python -g python --additional-properties=optionalProjectFile=false,optionalAssemblyInfo=false+ diff --git a/.github/workflows/lint-oas.yml b/.github/workflows/lint-oas.yml index 6204f0c..d7b453c 100644 --- a/.github/workflows/lint-oas.yml +++ b/.github/workflows/lint-oas.yml @@ -12,11 +12,11 @@ on: jobs: run: runs-on: ubuntu-latest - strategy: - matrix: - version: [ 'v1' ] + # strategy: + # matrix: + # version: [ 'v1' ] - name: Run with version $ + name: Run with version v1 steps: - uses: actions/checkout@v4