From bdfa596bf31455232eacfc3c7dbd5ec5713eec03 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Wed, 2 Feb 2022 11:45:57 +0100 Subject: [PATCH] Give the python version used --- .github/package.py | 8 ++++---- .github/workflows/package.yml | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/package.py b/.github/package.py index aa36058..d52ebcb 100644 --- a/.github/package.py +++ b/.github/package.py @@ -11,10 +11,10 @@ def get_folder_name(): if __name__ == "__main__": env_file = os.getenv('GITHUB_ENV') name = get_folder_name() + archive = name + '.zip' print(f'Python : The folder name find are "{name}"') - with open(env_file, 'a') as f: - f.write(f'APP_NAME={name}') - f.write(f'NAME_PACKAGE={name}.zip') + with open(env_file, 'w') as f: + f.write('APP_NAME={name}'.format(name=name)) + f.write('NAME_PACKAGE={archive}.zip'.format(archive=archive)) print('Update all env. variable') - f.close() diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index eae2da3..23b94cb 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -33,6 +33,11 @@ jobs: steps: - uses: actions/checkout@main + - name: "Set up python" + uses: actions/setup-python@v2 + with: + python-version: 3.8 + # Update the bl info version, update the init file and push if needed - name: Change version number in the bl info addon data run: python '.github/version.py' --tag=${{ inputs.num_version }} --name=${{ env.APP_NAME }}