mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-26 13:14:16 +01:00
added version & release in zip name (#81)
Co-authored-by: LoveSy <shana@zju.edu.cn>
This commit is contained in:
parent
a81774841a
commit
0c131c5027
10
.github/workflows/magisk.yml
vendored
10
.github/workflows/magisk.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user