-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (31 loc) · 852 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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