added version & release in zip name (#81)

Co-authored-by: LoveSy <shana@zju.edu.cn>
This commit is contained in:
Pazhani Ragunathan 2021-11-13 01:42:03 +05:30 committed by GitHub
parent a81774841a
commit 0c131c5027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,14 @@ jobs:
if not os.path.isfile(zip_name):
print(f"unzipping to {zip_name}", flush=True)
zip.extract(f)
ver_no = zip_name.split("_")
ver = ver_no[1]
with open(os.environ['GITHUB_ENV'], 'a') as f:
f.write(f'WSA_VER={ver}\n')
rel = ver_no[3].split(".")
rell = str(rel[0])
with open(os.environ['GITHUB_ENV'], 'a') as f:
f.write(f'WSA_REL={rell}\n')
break
with zipfile.ZipFile(zip_name) as zip:
@ -371,7 +379,7 @@ jobs:
else
name2="-GApps-${variant}"
fi
echo "artifact_name=WSA${name1}${name2}_${{ matrix.arch }}" >> $GITHUB_ENV
echo "artifact_name=WSA${name1}${name2}_${{ env.WSA_VER }}_${{ matrix.arch }}_${{ env.WSA_REL }}" >> $GITHUB_ENV
- name: Upload WSA
uses: actions/upload-artifact@v2
with: