mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
Update patch.yml
This commit is contained in:
32
.github/workflows/patch.yml
vendored
32
.github/workflows/patch.yml
vendored
@@ -16,19 +16,37 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|
||||||
|
- name: Generate Changelog
|
||||||
|
run: |
|
||||||
|
curl -s https://api.github.com/repos/revanced/revanced-patches/releases/latest \
|
||||||
|
| grep "browser_download_url.*json" \
|
||||||
|
| cut -d : -f 2,3 \
|
||||||
|
| tr -d \" \
|
||||||
|
| wget -qi -
|
||||||
|
RVVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
|
||||||
|
rm -rf patches.json
|
||||||
|
|
||||||
|
curl -s https://api.github.com/repos/inotia00/revanced-patches/releases/latest \
|
||||||
|
| grep "browser_download_url.*json" \
|
||||||
|
| cut -d : -f 2,3 \
|
||||||
|
| tr -d \" \
|
||||||
|
| wget -qi -
|
||||||
|
RVEVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
|
||||||
|
rm -rf patches.json
|
||||||
|
echo "Download Below :point_down:" > ${{ github.workspace }}-CHANGELOG.txt
|
||||||
|
echo "INFO=Revanced-v${RVVERSION} & Revanced Extended-v${RVEVERSION}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Patch apk
|
- name: Patch apk
|
||||||
run: bash patch.sh
|
run: bash patch.sh
|
||||||
|
|
||||||
- name: Generate date
|
|
||||||
run: echo "DATE=$(date +%F)" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v0.1.15
|
uses: softprops/action-gh-release@v0.1.15
|
||||||
with:
|
with:
|
||||||
files: yt-revanced*.apk
|
files: yt-revanced*.apk
|
||||||
name: Release ${{ env.DATE }}
|
name: ${{ env.INFO }}
|
||||||
tag_name: ${{ env.DATE }}
|
tag_name: Revanced
|
||||||
|
body_path: ${{ github.workspace }}-CHANGELOG.txt
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
@@ -46,6 +64,6 @@ jobs:
|
|||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
retain_days: 0
|
retain_days: 0
|
||||||
keep_minimum_runs: 1
|
keep_minimum_runs: 5
|
||||||
|
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
|
|||||||
Reference in New Issue
Block a user