forked from recloudstream/cloudstream
1db8f98391
* site list changes - made site-list.json automatically create providers.json - removed site list from readme (now shows a link) - remove jquery dependency and split src into multiple files * update workflow file * oops wrong number * fix invalid regex * status 1 * revert providers.json
32 lines
872 B
YAML
32 lines
872 B
YAML
name: Create site list
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'app/src/main/java/com/lagradost/cloudstream3/*providers/*Provider.kt'
|
|
- '.github/workflows/site_list.yml'
|
|
- '.github/site-list.py'
|
|
- 'docs/providers.json'
|
|
- 'app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt'
|
|
|
|
concurrency:
|
|
group: "site-list"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
create:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Edit providers.json
|
|
run: |
|
|
python3 .github/site-list.py
|
|
- name: Commit to the repo
|
|
run: |
|
|
git config user.name "GitHub Actions"
|
|
git config user.email "actions@github.com"
|
|
git add .
|
|
# "echo" returns true so the build succeeds, even if no changed files
|
|
git commit -m 'chore(docs): update list of sites' || echo
|
|
git push
|