Skip to content

Make M3Us

Make M3Us #584

Workflow file for this run

name: Make M3Us
on:
schedule:
- cron: '0 0 * * *'
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: checkout repo content
uses: actions/checkout@v3
- name: pull changes
run: |
git pull
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute main.py script
run: python main.py
- name: execute curated.py script
run: python curated.py
- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "Updated M3U files on ${{ steps.date.outputs.date }}" --allow-empty)
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master