Validates content type
This commit is contained in:
@@ -70,6 +70,18 @@ jobs:
|
|||||||
path: main
|
path: main
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Hide sensitive inputs
|
||||||
|
uses: levibostian/action-hide-sensitive-inputs@v1
|
||||||
|
|
||||||
|
- name: Validate IPA URL
|
||||||
|
run: |
|
||||||
|
response=$(curl -sI "${{ inputs.ipa_url }}")
|
||||||
|
content_type=$(echo "$response" | grep -i "Content-Type" | awk '{print $2}' | tr -d '\r')
|
||||||
|
if [[ "$content_type" != "application/octet-stream" ]]; then
|
||||||
|
echo "Direct link to the IPA file required. Entered link is not a direct download or does not point to an IPA file."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: brew install make ldid
|
run: brew install make ldid
|
||||||
|
|
||||||
@@ -115,9 +127,6 @@ jobs:
|
|||||||
deb_url="https://github.com/dayanch96/YTLite/releases/download/v${{ inputs.tweak_version }}/com.dvntm.ytlite_${{ inputs.tweak_version }}_iphoneos-arm.deb"
|
deb_url="https://github.com/dayanch96/YTLite/releases/download/v${{ inputs.tweak_version }}/com.dvntm.ytlite_${{ inputs.tweak_version }}_iphoneos-arm.deb"
|
||||||
wget "$deb_url" --no-verbose -O ${{ github.workspace }}/ytplus.deb
|
wget "$deb_url" --no-verbose -O ${{ github.workspace }}/ytplus.deb
|
||||||
|
|
||||||
- name: Hide sensitive inputs
|
|
||||||
uses: levibostian/action-hide-sensitive-inputs@v1
|
|
||||||
|
|
||||||
- name: Download YouTube
|
- name: Download YouTube
|
||||||
id: download_youtube
|
id: download_youtube
|
||||||
run: wget "${{ inputs.ipa_url }}" --no-verbose -O ${{ github.workspace }}/youtube.ipa
|
run: wget "${{ inputs.ipa_url }}" --no-verbose -O ${{ github.workspace }}/youtube.ipa
|
||||||
|
|||||||
@@ -70,6 +70,27 @@ jobs:
|
|||||||
path: main
|
path: main
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Hide sensitive inputs
|
||||||
|
uses: levibostian/action-hide-sensitive-inputs@v1
|
||||||
|
|
||||||
|
- name: Validate IPA URL
|
||||||
|
run: |
|
||||||
|
response=$(curl -sI "${{ inputs.ipa_url }}")
|
||||||
|
content_type=$(echo "$response" | grep -i "Content-Type" | awk '{print $2}' | tr -d '\r')
|
||||||
|
if [[ "$content_type" != "application/octet-stream" ]]; then
|
||||||
|
echo "Direct link to the IPA file required. Entered link is not a direct download or does not point to an IPA file."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Validate Tweak URL
|
||||||
|
run: |
|
||||||
|
response=$(curl -sI "${{ inputs.tweak_url }}")
|
||||||
|
content_type=$(echo "$response" | grep -i "Content-Type" | awk '{print $2}' | tr -d '\r')
|
||||||
|
if [[ "$content_type" != "application/octet-stream" ]]; then
|
||||||
|
echo "Direct link to the tweak file required. Entered link is not a direct download or does not point to a DEB file."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: brew install make ldid
|
run: brew install make ldid
|
||||||
|
|
||||||
@@ -109,9 +130,6 @@ jobs:
|
|||||||
- name: Install cyan
|
- name: Install cyan
|
||||||
run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
|
run: pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
|
||||||
|
|
||||||
- name: Hide sensitive inputs
|
|
||||||
uses: levibostian/action-hide-sensitive-inputs@v1
|
|
||||||
|
|
||||||
- name: Download YouTube
|
- name: Download YouTube
|
||||||
id: download_youtube
|
id: download_youtube
|
||||||
run: wget "${{ inputs.ipa_url }}" --no-verbose -O ${{ github.workspace }}/youtube.ipa
|
run: wget "${{ inputs.ipa_url }}" --no-verbose -O ${{ github.workspace }}/youtube.ipa
|
||||||
|
|||||||
Reference in New Issue
Block a user