Merge pull request #18 from Moderlab-Production/develop
Try to update the env package value
This commit is contained in:
@@ -9,12 +9,4 @@ def get_folder_name():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
env_file = os.getenv('GITHUB_ENV')
|
||||
name = get_folder_name()
|
||||
print(f'Python : The folder name find are "{name}"')
|
||||
|
||||
with open(env_file, 'a') as f:
|
||||
f.write(f'APP_NAME={name}')
|
||||
|
||||
with open(env_file, 'a') as f:
|
||||
f.write(f'NAME_PACKAGE={name}.zip')
|
||||
|
||||
@@ -48,7 +48,9 @@ jobs:
|
||||
echo "With python, get a folder name"
|
||||
echo "Default env variable ${{env.APP_NAME}}"
|
||||
python '.github/package.py'
|
||||
echo "::set-output name=APP_NAME::$(echo python '.github/package.py')"
|
||||
echo "show env variable app name ${{env.APP_NAME}}"
|
||||
echo "::set-output name=changelog::$(echo python '.github/package.py'.zip)"
|
||||
echo "show env variable package ${{env.NAME_PACKAGE}}"
|
||||
|
||||
- name: Commit the previous update
|
||||
|
||||
Reference in New Issue
Block a user