Skip to content

Update Leaderboard #168

Update Leaderboard

Update Leaderboard #168

Workflow file for this run

name: Update Leaderboard
on:
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:
env:
TOKEN: ${{ secrets.TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
- name: Set up Python '3.11'
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Update leaderboard
run: python3 bot_leaderboard.py
- name: Commit & Push files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "Update Leaderboard"
git push --force