Skip to content

Revanced APKs

Revanced APKs #438

Workflow file for this run

name: Revanced APKs
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Revanced Youtube
run: sh revanced youtube
- name: Run Revanced Youtube Music
run: sh revanced youtube-music
- name: Run Revanced Twitter
run: sh revanced twitter
- name: Check for APK files
id: check_apks
run: |
if ls *.apk 1> /dev/null 2>&1;then
echo "apks_exist=true" >> "$GITHUB_OUTPUT"
echo "RELEASE_TAG=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
else
echo "apks_exist=false" >> "$GITHUB_OUTPUT"
fi
- name: Upload binaries to release
if: ${{ steps.check_apks.outputs.apks_exist == 'true' }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: revanced-*.apk
tag: ${{ steps.check_apks.outputs.RELEASE_TAG }}
overwrite: true
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 "Title: Download $(printf "%s" "$i" | tr '-' ' ')" -H "Click: $app_url"
done
- name: auwuto commit uwu
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "update: New Version"
repository: .
file_pattern: track
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}