Try to update the env package value

This commit is contained in:
Aurelien Vaillant
2022-02-02 12:17:19 +01:00
parent 4ffb0af8e4
commit 9cb2640eb6
2 changed files with 2 additions and 8 deletions
-8
View File
@@ -9,12 +9,4 @@ def get_folder_name():
if __name__ == "__main__": if __name__ == "__main__":
env_file = os.getenv('GITHUB_ENV')
name = get_folder_name() 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')
+2
View File
@@ -48,7 +48,9 @@ jobs:
echo "With python, get a folder name" echo "With python, get a folder name"
echo "Default env variable ${{env.APP_NAME}}" echo "Default env variable ${{env.APP_NAME}}"
python '.github/package.py' 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 "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}}" echo "show env variable package ${{env.NAME_PACKAGE}}"
- name: Commit the previous update - name: Commit the previous update