diff --git a/.github/clean.py b/.github/clean.py new file mode 100644 index 0000000..b9548a8 --- /dev/null +++ b/.github/clean.py @@ -0,0 +1,18 @@ +import requests +import glob +import os + +REPO = "recloudstream/cloudstream" +LIMIT = 30 +MARKERS = ['', ''] + +r = requests.get(f"https://api.github.com/repos/{REPO}/commits?per_page={LIMIT}") +commits = {} +for commit in r.json(): + short = commit['sha'][:7] + commits[short] = commit + +for apk in glob.glob("*.apk"): + sha, _ = apk.split(".") + if sha not in commits.keys(): + os.remove(apk) \ No newline at end of file diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml new file mode 100644 index 0000000..8d469d4 --- /dev/null +++ b/.github/workflows/clean.yml @@ -0,0 +1,27 @@ +name: Clean archive + +on: + push: + branches: [ master ] + workflow_dispatch: + +concurrency: + group: "clean" + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run script + run: | + python3 .github/clean.py + + - name: Push archive + run: | + git config --local user.email "actions@github.com" + git config --local user.name "GitHub Actions" + git add . + git commit --amend -m "Build $GITHUB_SHA" || exit 0 # do not error if nothing to commit + git push --force \ No newline at end of file diff --git a/0d431fd.apk b/0d431fd.apk new file mode 100644 index 0000000..2bed2d1 Binary files /dev/null and b/0d431fd.apk differ diff --git a/0f00b1b.apk b/0f00b1b.apk new file mode 100644 index 0000000..ff32196 Binary files /dev/null and b/0f00b1b.apk differ diff --git a/386ce75.apk b/386ce75.apk new file mode 100644 index 0000000..a9f2d1e Binary files /dev/null and b/386ce75.apk differ diff --git a/40a9635.apk b/40a9635.apk new file mode 100644 index 0000000..96a1b76 Binary files /dev/null and b/40a9635.apk differ diff --git a/4449347.apk b/4449347.apk new file mode 100644 index 0000000..595fd6c Binary files /dev/null and b/4449347.apk differ diff --git a/4ed65f8.apk b/4ed65f8.apk new file mode 100644 index 0000000..775048d Binary files /dev/null and b/4ed65f8.apk differ diff --git a/4f90167.apk b/4f90167.apk new file mode 100644 index 0000000..7b2431d Binary files /dev/null and b/4f90167.apk differ diff --git a/51c1089.apk b/51c1089.apk new file mode 100644 index 0000000..a50905e Binary files /dev/null and b/51c1089.apk differ diff --git a/8479573.apk b/8479573.apk new file mode 100644 index 0000000..5cb4a8e Binary files /dev/null and b/8479573.apk differ diff --git a/906f1fd.apk b/906f1fd.apk new file mode 100644 index 0000000..b4cda83 Binary files /dev/null and b/906f1fd.apk differ diff --git a/94e7eb8.apk b/94e7eb8.apk new file mode 100644 index 0000000..c57612b Binary files /dev/null and b/94e7eb8.apk differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..9060f57 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# cloudstream-archive +Old versions of cloudstream + +⚠️ Please use the [latest version](https://github.com/recloudstream/cloudstream/releases) instead. ⚠️ \ No newline at end of file diff --git a/a95fcfc.apk b/a95fcfc.apk new file mode 100644 index 0000000..9f6e176 Binary files /dev/null and b/a95fcfc.apk differ diff --git a/b115817.apk b/b115817.apk new file mode 100644 index 0000000..5c580f9 Binary files /dev/null and b/b115817.apk differ diff --git a/b356ad9.apk b/b356ad9.apk new file mode 100644 index 0000000..9dab4a9 Binary files /dev/null and b/b356ad9.apk differ diff --git a/b5566af.apk b/b5566af.apk new file mode 100644 index 0000000..b027040 Binary files /dev/null and b/b5566af.apk differ diff --git a/bdb45b6.apk b/bdb45b6.apk new file mode 100644 index 0000000..809860e Binary files /dev/null and b/bdb45b6.apk differ diff --git a/da0be63.apk b/da0be63.apk new file mode 100644 index 0000000..4a88d8c Binary files /dev/null and b/da0be63.apk differ diff --git a/fb3576e.apk b/fb3576e.apk new file mode 100644 index 0000000..c4114a9 Binary files /dev/null and b/fb3576e.apk differ