Skip to content

Commit

Permalink
Build 4e28e5f8cc4d811184799cb3aa024665cc0aee3d
Browse files Browse the repository at this point in the history
  • Loading branch information
null authored and actions-user committed Aug 20, 2023
0 parents commit 45a4e3c
Show file tree
Hide file tree
Showing 24 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 0eb241e.apk
Binary file not shown.
Binary file added 10c1ea2.apk
Binary file not shown.
Binary file added 1901eb3.apk
Binary file not shown.
Binary file added 35e1b8b.apk
Binary file not shown.
Binary file added 4d98690.apk
Binary file not shown.
Binary file added 4e01d32.apk
Binary file not shown.
Binary file added 4e28e5f.apk
Binary file not shown.
Binary file added 56cb3d7.apk
Binary file not shown.
Binary file added 61d63b1.apk
Binary file not shown.
Binary file added 74867be.apk
Binary file not shown.
Binary file added 8f6e8a8.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 a3009af.apk
Binary file not shown.
Binary file added c2b951a.apk
Binary file not shown.
Binary file added cbaca15.apk
Binary file not shown.
Binary file added d247640.apk
Binary file not shown.
Binary file added d2d2e41.apk
Binary file not shown.
Binary file added dd4f4a2.apk
Binary file not shown.
Binary file added e20e3dc.apk
Binary file not shown.
Binary file added e43b480.apk
Binary file not shown.
Binary file added e95dc1d.apk
Binary file not shown.
Binary file added f571596.apk
Binary file not shown.

0 comments on commit 45a4e3c

Please sign in to comment.