Update zip name

This commit is contained in:
LoveSy 2021-11-10 18:25:23 +08:00 committed by GitHub
parent e8f1dff808
commit b133293255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -358,11 +358,20 @@ jobs:
- name: Generate artifact name - name: Generate artifact name
run: | run: |
variant="${{ github.event.inputs.gapps_variant }}" variant="${{ github.event.inputs.gapps_variant }}"
if [[ "$variant" = "none" || "$variant" = "" ]]; then root="${{ github.event.inputs.root_sol }}"
echo "artifact_name=WSA-with-Magisk-NoGApps_${{ matrix.arch }}" >> $GITHUB_ENV if [[ "$root" = "none" ]]; then
name1="-"
elif [[ "$root" = "" ]]; then
name1="-with-magisk"
else else
echo "artifact_name=WSA-with-Magisk-GApps-${variant}_${{ matrix.arch }}" >> $GITHUB_ENV name1="-with-${root}"
fi fi
if [[ "$variant" = "none" || "$variant" = "" ]]; then
name2="-NoGApps"
else
name2="-GApps-${variant}"
fi
echo "artifact_name=WSA${name1}${name2}_${{ matrix.arch }}" >> $GITHUB_ENV
- name: Upload WSA - name: Upload WSA
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with: