Update the script to define package name

This commit is contained in:
Aurelien Vaillant
2022-02-02 10:39:50 +01:00
parent 4dc408d998
commit 22fac3b775
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -10,4 +10,4 @@ def get_folder_name():
if __name__ == "__main__": if __name__ == "__main__":
name = get_folder_name() name = get_folder_name()
print(f'Show this value : {name}') # print(f'Show this value : {name}')
+3 -1
View File
@@ -43,7 +43,9 @@ jobs:
echo "With python, get a folder name" echo "With python, get a folder name"
python '.github/package.py' python '.github/package.py'
echo "set with output value" echo "set with output value"
echo "::set-output name=type::$(python .github/package.py)" echo "Default env variable ${{env.APP_NAME}}"
echo "{$(python .github/package.py)}={value}" >> $GITHUB_ENV
echo "show env variable ${{env.APP_NAME}}"
- name: Commit the previous update - name: Commit the previous update
uses: actions-js/push@v1.3 uses: actions-js/push@v1.3