diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml index e948dd0..8312655 100644 --- a/.github/workflows/patch.yml +++ b/.github/workflows/patch.yml @@ -38,14 +38,6 @@ jobs: echo "Download Below :point_down:" > ${{ github.workspace }}-CHANGELOG.txt echo "INFO-RV=Revanced-v${RVVERSION}" >> $GITHUB_ENV echo "INFO-RVE=Revanced Extended-v${RVEVERSION}" >> $GITHUB_ENV - - - name: Delete Release - uses: dev-drprasad/delete-older-releases@v0.2.1 - with: - repo: ${{ github.repository }} - keep_latest: 0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Release Revanced uses: softprops/action-gh-release@v1 @@ -75,4 +67,12 @@ jobs: retain_days: 0 keep_minimum_runs: 5 + - name: Delete Release + uses: dev-drprasad/delete-older-releases@v0.2.1 + with: + repo: ${{ github.repository }} + keep_latest: 2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + permissions: write-all