-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.11 KB
/
update_leaderboard.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
36
37
38
39
40
41
42
43
44
45
46
47
name: myspace 93 leaderboard
on:
push:
branches:
- main # Set a branch to deploy
#schedule:
#- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run main.py
run: |
python main.py
- name: List files
run: |
ls -R
- name: Commit files # commit the output folder
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add ./index.md
git commit -m "Updated: `date +'%Y-%m-%d %H:%M:%S'`"
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
branch: gh-pages #ignore if your branch is master
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true