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/11136fe.apk b/11136fe.apk new file mode 100644 index 0000000..cc3f6e0 Binary files /dev/null and b/11136fe.apk differ diff --git a/137d833.apk b/137d833.apk new file mode 100644 index 0000000..5008380 Binary files /dev/null and b/137d833.apk differ diff --git a/22a0c25.apk b/22a0c25.apk new file mode 100644 index 0000000..318f6ec Binary files /dev/null and b/22a0c25.apk differ diff --git a/4b93524.apk b/4b93524.apk new file mode 100644 index 0000000..3fa4d58 Binary files /dev/null and b/4b93524.apk differ diff --git a/504258b.apk b/504258b.apk new file mode 100644 index 0000000..85a1731 Binary files /dev/null and b/504258b.apk differ diff --git a/5153a74.apk b/5153a74.apk new file mode 100644 index 0000000..bb94aa5 Binary files /dev/null and b/5153a74.apk differ diff --git a/51a877f.apk b/51a877f.apk new file mode 100644 index 0000000..e4ce2cc Binary files /dev/null and b/51a877f.apk differ diff --git a/5b0cbbf.apk b/5b0cbbf.apk new file mode 100644 index 0000000..3d392a3 Binary files /dev/null and b/5b0cbbf.apk differ diff --git a/6ce9f29.apk b/6ce9f29.apk new file mode 100644 index 0000000..e2e5267 Binary files /dev/null and b/6ce9f29.apk differ diff --git a/87c5aad.apk b/87c5aad.apk new file mode 100644 index 0000000..7d57916 Binary files /dev/null and b/87c5aad.apk differ diff --git a/8b73c35.apk b/8b73c35.apk new file mode 100644 index 0000000..34f7299 Binary files /dev/null and b/8b73c35.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/a6786aa.apk b/a6786aa.apk new file mode 100644 index 0000000..acf8bb8 Binary files /dev/null and b/a6786aa.apk differ diff --git a/a7a6f22.apk b/a7a6f22.apk new file mode 100644 index 0000000..416b177 Binary files /dev/null and b/a7a6f22.apk differ diff --git a/a8fdf5e.apk b/a8fdf5e.apk new file mode 100644 index 0000000..efda299 Binary files /dev/null and b/a8fdf5e.apk differ diff --git a/c9bffef.apk b/c9bffef.apk new file mode 100644 index 0000000..0a58a35 Binary files /dev/null and b/c9bffef.apk differ diff --git a/e4ba852.apk b/e4ba852.apk new file mode 100644 index 0000000..35fbe7d Binary files /dev/null and b/e4ba852.apk differ diff --git a/f0e4294.apk b/f0e4294.apk new file mode 100644 index 0000000..5b5ec4a Binary files /dev/null and b/f0e4294.apk differ