Skip to content

Commit

Permalink
Remove mod and sum in the docker run command
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Carino <carino_jade@yahoo.co.uk>
  • Loading branch information
jadecarino committed Jul 29, 2024
1 parent d6a743f commit 378f8c8
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +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
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"
- name: Change file permissions on go.mod
run: chmod -R 777 cli/pkg/galasaapi/go.mod

- name: Clear go.mod
run: |
rm -v cli/pkg/galasaapi/go.mod
- name: Change file permissions on go.sum
run: chmod -R 777 cli/pkg/galasaapi/go.sum
# - name: Clear go.mod
# run: |
# rm -v cli/pkg/galasaapi/go.mod

- name: Clear go.sum
run : |
rm -v cli/pkg/galasaapi/go.sum
# - name: Clear go.sum
# run : |
# rm -v cli/pkg/galasaapi/go.sum

- name: Update version
run : |
Expand Down

0 comments on commit 378f8c8

Please sign in to comment.