Includes application/zip check
This commit is contained in:
@@ -75,11 +75,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Validate IPA URL
|
- name: Validate IPA URL
|
||||||
run: |
|
run: |
|
||||||
curl -r 0-1023 -o sample.part "${{ inputs.ipa_url }}" > /dev/null 2>&1
|
curl -L -r 0-1023 -o sample.part "${{ inputs.ipa_url }}" > /dev/null 2>&1
|
||||||
file_type=$(file --mime-type -b sample.part)
|
file_type=$(file --mime-type -b sample.part)
|
||||||
|
|
||||||
if [[ "$file_type" != "application/x-ios-app" ]]; then
|
if [[ "$file_type" != "application/x-ios-app" && "$file_type" != "application/zip" ]]; then
|
||||||
echo "ERROR: The file is not a valid IPA file. Please ensure that you have provided a direct link to the file, not a web page."
|
echo "::error::Validation failed: The file is not a valid IPA file. Detected type: $file_type."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -274,7 +274,10 @@ jobs:
|
|||||||
- name: Upload to GitHub Releases
|
- name: Upload to GitHub Releases
|
||||||
uses: softprops/action-gh-release@v2.0.1
|
uses: softprops/action-gh-release@v2.0.1
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ github.run_number }}
|
|
||||||
name: YouTubePlus v${{ inputs.tweak_version }} (${{ github.run_number }})
|
name: YouTubePlus v${{ inputs.tweak_version }} (${{ github.run_number }})
|
||||||
files: YouTubePlus_${{ inputs.tweak_version }}.ipa
|
files: YouTubePlus_${{ inputs.tweak_version }}.ipa
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
|
- name: Output Release URL
|
||||||
|
run: |
|
||||||
|
echo "::notice::Release available at: https://github.com/${{ github.repository }}/releases"
|
||||||
@@ -75,21 +75,21 @@ jobs:
|
|||||||
|
|
||||||
- name: Validate IPA URL
|
- name: Validate IPA URL
|
||||||
run: |
|
run: |
|
||||||
curl -r 0-1023 -o sample.part "${{ inputs.ipa_url }}" > /dev/null 2>&1
|
curl -L -r 0-1023 -o sample.part "${{ inputs.ipa_url }}" > /dev/null 2>&1
|
||||||
file_type=$(file --mime-type -b sample.part)
|
file_type=$(file --mime-type -b sample.part)
|
||||||
|
|
||||||
if [[ "$file_type" != "application/x-ios-app" ]]; then
|
if [[ "$file_type" != "application/x-ios-app" && "$file_type" != "application/zip" ]]; then
|
||||||
echo "ERROR: The file is not a valid IPA file. Please ensure that you have provided a direct link to the file, not a web page."
|
echo "::error::Validation failed: The file is not a valid IPA file. Detected type: $file_type."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Validate Tweak URL
|
- name: Validate Tweak URL
|
||||||
run: |
|
run: |
|
||||||
curl -r 0-1023 -o debsample.part "${{ inputs.tweak_url }}" > /dev/null 2>&1
|
curl -L -r 0-1023 -o sample.part "${{ inputs.tweak_url }}" > /dev/null 2>&1
|
||||||
file_type=$(file --mime-type -b debsample.part)
|
file_type=$(file --mime-type -b sample.part)
|
||||||
|
|
||||||
if [[ "$file_type" != "application/vnd.debian.binary-package" ]]; then
|
if [[ "$file_type" != "application/vnd.debian.binary-package" ]]; then
|
||||||
echo "ERROR: The file is not a valid DEB file. Please ensure that you have provided a direct link to the file, not a web page."
|
echo "::error::Validation failed: The file is not a valid DEB file. Detected type: $file_type."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -282,7 +282,10 @@ jobs:
|
|||||||
- name: Upload to GitHub Releases
|
- name: Upload to GitHub Releases
|
||||||
uses: softprops/action-gh-release@v2.0.1
|
uses: softprops/action-gh-release@v2.0.1
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ github.run_number }}
|
|
||||||
name: YouTubePlus Beta (${{ github.run_number }})
|
name: YouTubePlus Beta (${{ github.run_number }})
|
||||||
files: YouTubePlus_Beta.ipa
|
files: YouTubePlus_Beta.ipa
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
|
- name: Output Release URL
|
||||||
|
run: |
|
||||||
|
echo "::notice::Release available at: https://github.com/${{ github.repository }}/releases"
|
||||||
Reference in New Issue
Block a user