Generate artifact name from inputs (#6)

* Generate artifact name from inputs

* add gapps_variant to artifact name
This commit is contained in:
zhongfly 2021-10-27 11:57:07 +08:00 committed by GitHub
parent 02996864ad
commit 2ba15c5a53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -555,8 +555,16 @@ jobs:
- name: Remove signature
run: |
rm -rf ${{ matrix.arch }}/\[Content_Types\].xml ${{ matrix.arch }}/AppxBlockMap.xml ${{ matrix.arch }}/AppxSignature.p7x ${{ matrix.arch }}/AppxMetadata
- name: Generate artifact name
run: |
variant="${{ github.event.inputs.gapps_variant }}"
if [[ "$variant" = "none" || "$variant" = "" ]]; then
echo "artifact_name=WSA-with-Magisk_${{ matrix.arch }}" >> $GITHUB_ENV
else
echo "artifact_name=WSA-with-Magisk-GApps-($variant)_${{ matrix.arch }}" >> $GITHUB_ENV
fi
- name: Upload WSA
uses: actions/upload-artifact@v2
with:
name: WSA-with-Magisk_${{ matrix.arch }}
name: ${{ env.artifact_name }}
path: './${{ matrix.arch }}/*'