Skip to content

Commit

Permalink
Feat: Add notification for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolnsX committed Jun 2, 2024
1 parent c5cd609 commit 89b54dc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ jobs:
file_glob: true
body: "New Releases."

- name: Notify For New Release
if: ${{ steps.check_apks.outputs.apks_exist == 'true' }}
env:
NTFY_URL: ${{ secrets.NTFY_URL }}
NTFY_TOPIC: ${{ secrets.NTFY_TOPIC }}
NTFY_TOKEN: ${{ secrets.NTFY_TOKEN }}
RELEASE_TAG: ${{ steps.check_apks.outputs.RELEASE_TAG }}
run: |
for i in *.apk;do
app_url="https://github.com/$GITHUB_REPOSITORY/releases/download/$RELEASE_TAG/$i"
curl -s "$NTFY_URL/$NTFY_TOPIC" -d "$app_url" -H "Authorization: Bearer $NTFY_TOKEN" -H "Download: $(printf "%s" "$i" | tr '-' ' ')" -H "Click: $app_url"
done
- name: auwuto commit uwu
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
2 changes: 1 addition & 1 deletion revanced
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ case $app in
;;
youtube-music)
arch="arm64-v8a"
[ -z "$2" ] && version="$(curl -s "https://www.apkmirror.com/apk/google-inc/youtube-music/" -A "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" | sed -nE 's|.*youtube-music/youtube-music-(.*)-release/".*|\1|p' | head -1)" || version=$2
[ -z "$2" ] && version="$(curl -s "https://www.apkmirror.com/apk/google-inc/youtube-music/" -A "$agent" | sed -nE 's|.*youtube-music/youtube-music-(.*)-release/".*|\1|p' | head -1)" || version=$2
exclude_patch_list=""
out="yt-music-revanced-$version.apk"
;;
Expand Down
4 changes: 2 additions & 2 deletions track
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
youtube 19-11-43
youtube-music 7-03-52
youtube
youtube-music

0 comments on commit 89b54dc

Please sign in to comment.