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/004c481.apk b/004c481.apk new file mode 100644 index 0000000..225bc88 Binary files /dev/null and b/004c481.apk differ diff --git a/0744189.apk b/0744189.apk new file mode 100644 index 0000000..789c993 Binary files /dev/null and b/0744189.apk differ diff --git a/0a24661.apk b/0a24661.apk new file mode 100644 index 0000000..13bb119 Binary files /dev/null and b/0a24661.apk differ diff --git a/138e1a1.apk b/138e1a1.apk new file mode 100644 index 0000000..08d1312 Binary files /dev/null and b/138e1a1.apk differ diff --git a/4399a61.apk b/4399a61.apk new file mode 100644 index 0000000..42b25ec Binary files /dev/null and b/4399a61.apk differ diff --git a/51d91bf.apk b/51d91bf.apk new file mode 100644 index 0000000..90a9999 Binary files /dev/null and b/51d91bf.apk differ diff --git a/5db541d.apk b/5db541d.apk new file mode 100644 index 0000000..b0762b9 Binary files /dev/null and b/5db541d.apk differ diff --git a/6cef9f7.apk b/6cef9f7.apk new file mode 100644 index 0000000..1502a18 Binary files /dev/null and b/6cef9f7.apk differ diff --git a/6df3ef1.apk b/6df3ef1.apk new file mode 100644 index 0000000..96880ae Binary files /dev/null and b/6df3ef1.apk differ diff --git a/949b583.apk b/949b583.apk new file mode 100644 index 0000000..5cdba35 Binary files /dev/null and b/949b583.apk differ diff --git a/9a18ef6.apk b/9a18ef6.apk new file mode 100644 index 0000000..cc6e96c Binary files /dev/null and b/9a18ef6.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/aa89728.apk b/aa89728.apk new file mode 100644 index 0000000..1b00011 Binary files /dev/null and b/aa89728.apk differ diff --git a/afdc498.apk b/afdc498.apk new file mode 100644 index 0000000..ba924aa Binary files /dev/null and b/afdc498.apk differ diff --git a/e2946ca.apk b/e2946ca.apk new file mode 100644 index 0000000..8670482 Binary files /dev/null and b/e2946ca.apk differ diff --git a/e6b9d62.apk b/e6b9d62.apk new file mode 100644 index 0000000..4127ea6 Binary files /dev/null and b/e6b9d62.apk differ diff --git a/fb89fd6.apk b/fb89fd6.apk new file mode 100644 index 0000000..e974efb Binary files /dev/null and b/fb89fd6.apk differ diff --git a/ff0dea3.apk b/ff0dea3.apk new file mode 100644 index 0000000..84b0976 Binary files /dev/null and b/ff0dea3.apk differ diff --git a/ff1ffbe.apk b/ff1ffbe.apk new file mode 100644 index 0000000..760ea1f Binary files /dev/null and b/ff1ffbe.apk differ diff --git a/ffa7b02.apk b/ffa7b02.apk new file mode 100644 index 0000000..a517e21 Binary files /dev/null and b/ffa7b02.apk differ