shturk #4427
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: shturk | |
on: | |
schedule: | |
- cron: '16 */02 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: config | |
run: | | |
git config --global user.email "<>" | |
git config --global user.name "shturk bot" | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install requests module | |
run: python3 -m pip install requests | |
- name: Execute Python script | |
run: python3 ressources/tur/shturk.py > ressources/tur/shturk.m3u8 | |
- name: Execute Python script max | |
run: python3 ressources/tur/shmax.py > ressources/tur/shmax.m3u8 | |
- name: git add | |
run: | | |
git add -A | |
ls -la | |
- name: commit & push | |
run: | | |
git pull origin master | |
git commit -m "shturk updated" | |
git push origin master |