From 9cb2640eb6086a4d107b6049beaceaae149cf509 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Wed, 2 Feb 2022 12:17:19 +0100 Subject: [PATCH] Try to update the env package value --- .github/package.py | 8 -------- .github/workflows/package.yml | 2 ++ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/package.py b/.github/package.py index bf0d49e..ef99c5c 100644 --- a/.github/package.py +++ b/.github/package.py @@ -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') diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 23b94cb..6b30eb4 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -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