Skip to content

Commit

Permalink
udates to the python generator
Browse files Browse the repository at this point in the history
  • Loading branch information
georgedias committed May 21, 2023
1 parent 0190826 commit ba33a73
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/generate-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,32 +53,32 @@ jobs:
if: contains(steps.changed-files.outputs.modified_files, 'eMASSRestOpenApi.yaml')

# Publish the newly generated eMASS client to the current repo
- name: Publish Generated Clients 🚀
if: contains(steps.changed-files.outputs.modified_files, 'eMASSRestOpenApi.yaml')
env:
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts (eMASS Clients)
CI_COMMIT_AUTHOR: Continuous Integration
# Use previous user who made the last commit (from logs)
# CI_COMMIT_AUTHOR: "$(git log -n 1 --pretty=format:%an)"
CI_COMMIT_EMAIL: "$(git log -n 1 --pretty=format:%ae)"
run: |
# - name: Publish Generated Clients 🚀
# if: contains(steps.changed-files.outputs.modified_files, 'eMASSRestOpenApi.yaml')
# env:
# CI_COMMIT_MESSAGE: Continuous Integration Build Client Artifacts (eMASS Clients)
# CI_COMMIT_AUTHOR: Continuous Integration
# # Use previous user who made the last commit (from logs)
# # CI_COMMIT_AUTHOR: "$(git log -n 1 --pretty=format:%an)"
# CI_COMMIT_EMAIL: "$(git log -n 1 --pretty=format:%ae)"
# run: |

# echo "Renaming generated directory from ruby-client to ruby_client..."
rm -R src/ruby_client
mv ruby-client src/ruby_client
# # echo "Renaming generated directory from ruby-client to ruby_client..."
# rm -R src/ruby_client
# mv ruby-client src/ruby_client

# echo "Renaming generated directory from typescript-axios-client to typescript_client..."
rm -R src/typescript_client
mv typescript-axios-client src/typescript_client
# # echo "Renaming generated directory from typescript-axios-client to typescript_client..."
# rm -R src/typescript_client
# mv typescript-axios-client src/typescript_client

# echo "Renaming generated directory from python-client to python_client..."
rm -R src/python_client
mv python-client src/python_client
# # echo "Renaming generated directory from python-client to python_client..."
# rm -R src/python_client
# mv python-client src/python_client

# echo "GIT commit and push eMASS clients..."
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
git add src/ruby_client src/typescript_client src/python_client
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push -f
echo "All done now."
# # echo "GIT commit and push eMASS clients..."
# git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
# git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
# git add src/ruby_client src/typescript_client src/python_client
# git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
# git push -f
# echo "All done now."
2 changes: 1 addition & 1 deletion src/python_client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "emass_client_api"
VERSION = "3.9.0"
VERSION = "3.8.0"
# To install the library, run the following
#
# python setup.py install
Expand Down

0 comments on commit ba33a73

Please sign in to comment.