mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-29 22:54:14 +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):
|
if not os.path.isfile(zip_name):
|
||||||
print(f"unzipping to {zip_name}", flush=True)
|
print(f"unzipping to {zip_name}", flush=True)
|
||||||
zip.extract(f)
|
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
|
break
|
||||||
|
|
||||||
with zipfile.ZipFile(zip_name) as zip:
|
with zipfile.ZipFile(zip_name) as zip:
|
||||||
@ -371,7 +379,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
name2="-GApps-${variant}"
|
name2="-GApps-${variant}"
|
||||||
fi
|
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
|
- name: Upload WSA
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user