From 6faae98de0fbad5cc68f3d103ca583729d23538e Mon Sep 17 00:00:00 2001 From: Jade Carino Date: Mon, 29 Jul 2024 16:31:21 +0100 Subject: [PATCH] Run in separate step Signed-off-by: Jade Carino --- .github/workflows/pr-build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 9f1d2eba..609b8a75 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -40,7 +40,15 @@ jobs: - name: Generate Go client code using openapi.yaml run : | - docker run --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/openapi:main "java -jar /opt/openapi/openapi-generator-cli.jar generate -i /var/workspace/cli/build/dependencies/openapi.yaml -g go -o /var/workspace/cli/pkg/galasaapi --additional-properties=packageName=galasaapi --global-property=apiTests=false ; rm /var/workspace/cli/pkg/galasaapi/go.mod ; rm /var/workspace/cli/pkg/galasaapi/go.sum" + docker run --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/openapi:main java -jar /opt/openapi/openapi-generator-cli.jar generate -i /var/workspace/cli/build/dependencies/openapi.yaml -g go -o /var/workspace/cli/pkg/galasaapi --additional-properties=packageName=galasaapi --global-property=apiTests=false + + - name: Clear go.mod + run : | + docker run --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/openapi:main rm /var/workspace/cli/pkg/galasaapi/go.mod + + - name: Clear go.sum + run : | + docker run --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/openapi:main rm /var/workspace/cli/pkg/galasaapi/go.sum # - name: Clear go.mod # run: |