Skip to content

.github/workflows/run.yml #20141

.github/workflows/run.yml

.github/workflows/run.yml #20141

Workflow file for this run

name: Re-calculate the Undisputed United hourly
on:
schedule:
- cron: "0 * * * *"
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- run: python -m undisputedunited.main
- name: Commit updated files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md all_title_changes.csv
git commit -m "Recalculating the Undisputed United"
- name: Push modified files
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}