Give the python version used

This commit is contained in:
Aurelien Vaillant
2022-02-02 11:45:57 +01:00
parent dcad1f74c8
commit bdfa596bf3
2 changed files with 9 additions and 4 deletions
+4 -4
View File
@@ -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()
+5
View File
@@ -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 }}