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/105fbf7.apk b/105fbf7.apk new file mode 100644 index 0000000..63183e0 Binary files /dev/null and b/105fbf7.apk differ diff --git a/521d3a8.apk b/521d3a8.apk new file mode 100644 index 0000000..20399b7 Binary files /dev/null and b/521d3a8.apk differ diff --git a/63a8b2d.apk b/63a8b2d.apk new file mode 100644 index 0000000..7145586 Binary files /dev/null and b/63a8b2d.apk differ diff --git a/69399eb.apk b/69399eb.apk new file mode 100644 index 0000000..9d66a88 Binary files /dev/null and b/69399eb.apk differ diff --git a/6da673c.apk b/6da673c.apk new file mode 100644 index 0000000..2a4e09d Binary files /dev/null and b/6da673c.apk differ diff --git a/726a6ce.apk b/726a6ce.apk new file mode 100644 index 0000000..bb35499 Binary files /dev/null and b/726a6ce.apk differ diff --git a/843a5e7.apk b/843a5e7.apk new file mode 100644 index 0000000..357c518 Binary files /dev/null and b/843a5e7.apk differ diff --git a/9c31d0a.apk b/9c31d0a.apk new file mode 100644 index 0000000..c5c8f45 Binary files /dev/null and b/9c31d0a.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/a4db6df.apk b/a4db6df.apk new file mode 100644 index 0000000..7e989e5 Binary files /dev/null and b/a4db6df.apk differ diff --git a/ce5974c.apk b/ce5974c.apk new file mode 100644 index 0000000..140d169 Binary files /dev/null and b/ce5974c.apk differ diff --git a/d03e03b.apk b/d03e03b.apk new file mode 100644 index 0000000..a00bee5 Binary files /dev/null and b/d03e03b.apk differ diff --git a/e15910f.apk b/e15910f.apk new file mode 100644 index 0000000..19301f7 Binary files /dev/null and b/e15910f.apk differ diff --git a/eb9b309.apk b/eb9b309.apk new file mode 100644 index 0000000..0148f09 Binary files /dev/null and b/eb9b309.apk differ diff --git a/f36939f.apk b/f36939f.apk new file mode 100644 index 0000000..e5df368 Binary files /dev/null and b/f36939f.apk differ