Update magisk.yml

This commit is contained in:
Peter Njeim 2022-07-08 15:41:49 +03:00 committed by GitHub
parent 36d2633e79
commit c54da4496a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -651,28 +651,35 @@ jobs:
Write-Host "All Done\`r\`nPress any key to exit" Write-Host "All Done\`r\`nPress any key to exit"
\$null = \$Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') \$null = \$Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown')
EOF EOF
- name: Generate artifact name - name: Generate release asset name
run: | run: |
variant="${{ github.event.inputs.gapps_variant }}" variant="${{ github.event.inputs.gapps_variant }}"
root="${{ github.event.inputs.root_sol }}" root="${{ github.event.inputs.root_sol }}"
magisk="${{ github.event.inputs.magisk_apk }}"
amazon="${{ github.event.inputs.remove_amazon }}"
if [[ "$root" = "none" ]]; then if [[ "$root" = "none" ]]; then
name1="" rootVer=""
elif [[ "$root" = "" ]]; then elif [[ "$root" = "" ]]; then
name1="-with-magisk" rootVer=" (Magisk $(curl -s https://raw.githubusercontent.com/topjohnwu/magisk-files/master/$magisk.json | jq -r ".magisk.version"))"
else else
name1="-with-${root}" rootVer=" (Magisk $(curl -s https://raw.githubusercontent.com/topjohnwu/magisk-files/master/$magisk.json | jq -r ".magisk.version"))"
fi fi
if [[ "$variant" = "none" || "$variant" = "" ]]; then if [[ "$variant" = "none" || "$variant" = "" ]]; then
name2="-NoGApps" gappsVer=""
else else
name2="-GApps-${variant}" gappsVer=" (GApps ${variant})"
fi fi
echo "artifact_name=WSA${name1}${name2}_${{ env.WSA_VER }}_${{ matrix.arch }}_${{ env.WSA_REL }}" >> $GITHUB_ENV if [[ "$amazon" == "remove" ]]; then
amazonVer=""
else
amazonVer=" (Amazon App Store)"
fi
echo "release_asset_name=WSA ${{ env.WSA_VER }}$rootVer$gappsVer$amazonVer (${{ matrix.arch }})" >> $GITHUB_ENV
- name: Compress - name: Compress
run: | run: |
zip -qrv ${{ env.artifact_name }}.zip ./${{ matrix.arch }}/* zip -qrv ${{ env.release_asset_name }}.zip ./${{ matrix.arch }}/*
- name: Upload WSA - name: Upload WSA
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
files: ./${{ env.artifact_name }}.zip files: ./${{ env.release_asset_name }}.zip
tag_name: WSA tag_name: WSA