Skip to content

Commit

Permalink
Build 4b4e006f4a6137a11910b3b4a52e92983deca8f2
Browse files Browse the repository at this point in the history
  • Loading branch information
null authored and actions-user committed Jul 30, 2023
0 parents commit 54808da
Show file tree
Hide file tree
Showing 21 changed files with 49 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/clean.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import requests
import glob
import os

REPO = "recloudstream/cloudstream"
LIMIT = 30
MARKERS = ['<!--begin table-->', '<!--end table-->']

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)
27 changes: 27 additions & 0 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
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
Binary file added 0d431fd.apk
Binary file not shown.
Binary file added 0f00b1b.apk
Binary file not shown.
Binary file added 386ce75.apk
Binary file not shown.
Binary file added 40a9635.apk
Binary file not shown.
Binary file added 446f774.apk
Binary file not shown.
Binary file added 4b4e006.apk
Binary file not shown.
Binary file added 51c1089.apk
Binary file not shown.
Binary file added 8479573.apk
Binary file not shown.
Binary file added 906f1fd.apk
Binary file not shown.
Binary file added 9237817.apk
Binary file not shown.
Binary file added 927453d.apk
Binary file not shown.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# cloudstream-archive
Old versions of cloudstream

⚠️ Please use the [latest version](https://github.com/recloudstream/cloudstream/releases) instead. ⚠️
Binary file added a95fcfc.apk
Binary file not shown.
Binary file added b115817.apk
Binary file not shown.
Binary file added b5566af.apk
Binary file not shown.
Binary file added bfb3313.apk
Binary file not shown.
Binary file added c3296f3.apk
Binary file not shown.
Binary file added da0be63.apk
Binary file not shown.
Binary file added fb3576e.apk
Binary file not shown.

0 comments on commit 54808da

Please sign in to comment.