Swtitch to ncipollo/release-action

- softprops/action-gh-release too outdate so switch to ncipollo/release-action
- fix bugs about download function
- bump tumblr version
This commit is contained in:
siritami
2024-03-31 11:37:58 +07:00
parent 13c1a5dfe3
commit ea63ce29bc
4 changed files with 14 additions and 12 deletions

View File

@@ -7,15 +7,19 @@ runs:
run: | run: |
echo " echo "
**Change log** :point_down: **Change log** :point_down:
[Revanced](https://github.com/revanced/revanced-patches/releases/latest) [Revanced](https://github.com/revanced/revanced-patches/releases)
[Revanced Extended](https://github.com/inotia00/revanced-patches/releases/latest) [Revanced Extended](https://github.com/inotia00/revanced-patches/releases)
[Revanced Extended for Android 6 & 7](https://github.com/kitadai31/revanced-patches-android6-7/releases/latest) [ReX](https://github.com/YT-Advanced/ReX-patches/releases)
[ReX forked by anddea](https://github.com/anddea/revanced-patches/releases)
[Revanced Extended for Android 6 & 7](https://github.com/kitadai31/revanced-patches-android6-7/releases)
[Revanced Extended For Android 5:](https://github.com/d4n3436/revanced-patches-android5/releases)
"> ${{ github.workspace }}-CHANGELOG.txt "> ${{ github.workspace }}-CHANGELOG.txt
- name: Release - name: Release
uses: softprops/action-gh-release@v0.1.15 uses: ncipollo/release-action@v1.14.0
with: with:
files: | artifacts: |
./release/*.apk ./release/*.apk
name: Revanced & Revanced Extended name: Revanced & Revanced Extended
tag_name: all tag: all
body_path: ${{ github.workspace }}-CHANGELOG.txt bodyFile: ${{ github.workspace }}-CHANGELOG.txt
allowUpdates: true

View File

@@ -41,7 +41,6 @@ patch "windy" "revanced"
# Patch Tumblr: # Patch Tumblr:
get_patches_key "tumblr" get_patches_key "tumblr"
version="33.2.0.110"
get_apk "tumblr" "tumblr" "tumblr-inc/tumblr/tumblr" get_apk "tumblr" "tumblr" "tumblr-inc/tumblr/tumblr"
patch "tumblr" "revanced" patch "tumblr" "revanced"

View File

@@ -42,7 +42,6 @@ patch "windy" "revanced"
# Patch Tumblr: # Patch Tumblr:
get_patches_key "tumblr" get_patches_key "tumblr"
version="33.2.0.110"
get_apk "tumblr-beta" "tumblr" "tumblr-inc/tumblr/tumblr" get_apk "tumblr-beta" "tumblr" "tumblr-inc/tumblr/tumblr"
patch "tumblr-beta" "revanced" patch "tumblr-beta" "revanced"

View File

@@ -148,14 +148,14 @@ get_apk() {
local attempt=0 local attempt=0
while [ $attempt -lt 10 ]; do while [ $attempt -lt 10 ]; do
if [[ -z $version ]] || [ $attempt -ne 0 ]; then if [[ -z $version ]] || [ $attempt -ne 0 ]; then
local list_vers v versions=() local list_vers v _versions=() IFS=$'\n'
list_vers=$(req "https://www.apkmirror.com/uploads/?appcategory=$2" -) list_vers=$(req "https://www.apkmirror.com/uploads/?appcategory=$2" -)
version=$(sed -n 's;.*Version:</span><span class="infoSlide-value">\(.*\) </span>.*;\1;p' <<<"$list_vers") version=$(sed -n 's;.*Version:</span><span class="infoSlide-value">\(.*\) </span>.*;\1;p' <<<"$list_vers")
version=$(grep -iv "\(beta\|alpha\)" <<<"$version") version=$(grep -iv "\(beta\|alpha\)" <<<"$version")
for v in $version; do for v in $version; do
grep -iq "${v} \(beta\|alpha\)" <<<"$list_vers" || versions+=("$v") grep -iq "${v} \(beta\|alpha\)" <<<"$list_vers" || _versions+=("$v")
done done
version=$(echo -e "$version" | sed -n "$((attempt + 1))p") version=$(echo -e "${_versions[*]}" | sed -n "$((attempt + 1))p")
fi fi
green_log "[+] Downloading $2 version: $version $4 $5 $6" green_log "[+] Downloading $2 version: $version $4 $5 $6"
local base_apk="$1.apk" local base_apk="$1.apk"