2021-10-04 14:57:57 +00:00
|
|
|
name: Create site list
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
paths:
|
|
|
|
- 'app/src/main/java/com/lagradost/cloudstream3/*providers/*Provider.kt'
|
|
|
|
- '.github/workflows/site_list.yml'
|
2021-10-04 15:02:04 +00:00
|
|
|
- '.github/site-list.py'
|
2022-04-12 16:48:50 +00:00
|
|
|
- 'docs/providers.json'
|
2021-10-04 16:16:04 +00:00
|
|
|
- 'app/src/main/java/com/lagradost/cloudstream3/MainAPI.kt'
|
2021-10-04 14:57:57 +00:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: "site-list"
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
create:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-04-12 16:48:50 +00:00
|
|
|
- name: Edit providers.json
|
2021-10-04 14:57:57 +00:00
|
|
|
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
|
2021-10-04 15:02:04 +00:00
|
|
|
git push
|