mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-11 09:30:16 +02:00
Remove checking for APKs
This is because I couldn't check for prereleases because I don't know how, maybe you can.
This commit is contained in:
29
.github/workflows/android.yml
vendored
29
.github/workflows/android.yml
vendored
@@ -47,34 +47,7 @@ jobs:
|
|||||||
tag: "v${{ steps.extract_version.outputs.version }}-beta"
|
tag: "v${{ steps.extract_version.outputs.version }}-beta"
|
||||||
prerelease: true
|
prerelease: true
|
||||||
artifacts: ./build/app/outputs/flutter-apk/*-signed*.apk
|
artifacts: ./build/app/outputs/flutter-apk/*-signed*.apk
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
- name: Wait For 10 Seconds
|
|
||||||
run: sleep 10
|
|
||||||
|
|
||||||
- name: Verify If APKs Have Been Uploaded
|
|
||||||
id: check_for_apk
|
|
||||||
run: |
|
|
||||||
release_info=$(curl -s "https://api.github.com/repos/ImranR98/Obtainium/releases/latest" -H "Authorization: Bearer ${{ secrets.GAT }}")
|
|
||||||
apk_asset_count=$(echo $release_info | jq '.assets | length')
|
|
||||||
release_id=$(echo $release_info | jq -r '.id')
|
|
||||||
if [[ $apk_asset_count -eq 0 ]]; then
|
|
||||||
echo "Deleting the release $release_id"
|
|
||||||
echo "::set-output name=delete_latest_release::true"
|
|
||||||
else
|
|
||||||
echo "APK found. Not deleting the release $release_id"
|
|
||||||
echo "::set-output name=delete_latest_release::false"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Delete The Latest Release If No APKs Found
|
|
||||||
uses: ClementTsang/delete-tag-and-release@v0.3.1
|
|
||||||
with:
|
|
||||||
delete_release: true
|
|
||||||
tag_name: "v${{ steps.extract_version.outputs.version }}-beta"
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GAT }}
|
|
||||||
if: steps.check_for_apk.outputs.delete_latest_release == 'true'
|
|
||||||
|
|
||||||
- name: Archive Reports For Job
|
- name: Archive Reports For Job
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user