Skip to content

Commit

Permalink
Build 805f80b2acc6776b8882d0a92dfad2edf3003a42
Browse files Browse the repository at this point in the history
  • Loading branch information
null authored and actions-user committed Feb 19, 2024
0 parents commit 248726a
Show file tree
Hide file tree
Showing 23 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 01f21e0.apk
Binary file not shown.
Binary file added 09779b4.apk
Binary file not shown.
Binary file added 0c73f5e.apk
Binary file not shown.
Binary file added 0eb152c.apk
Binary file not shown.
Binary file added 1676094.apk
Binary file not shown.
Binary file added 2b7d102.apk
Binary file not shown.
Binary file added 399b28c.apk
Binary file not shown.
Binary file added 3dcf707.apk
Binary file not shown.
Binary file added 5af1b80.apk
Binary file not shown.
Binary file added 5dfc08a.apk
Binary file not shown.
Binary file added 601483e.apk
Binary file not shown.
Binary file added 636e157.apk
Binary file not shown.
Binary file added 723c653.apk
Binary file not shown.
Binary file added 805f80b.apk
Binary file not shown.
Binary file added 8b14fcb.apk
Binary file not shown.
Binary file added 93dce86.apk
Binary file not shown.
Binary file added 9ea7674.apk
Binary file not shown.
Binary file added 9f1b172.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. ⚠️
Loading

0 comments on commit 248726a

Please sign in to comment.