-
-
Notifications
You must be signed in to change notification settings - Fork 59
46 lines (41 loc) · 1.15 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
name: Code Formatter & Update Leaderboard
on:
push:
branches:
- master
jobs:
run:
name: Code Formatter & Update Leaderboard
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
clean: false
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Black Code Formatter
uses: lgeiger/black-action@master
with:
args: "."
- name: Install dependencies and Update Leaderboard
run: |
python -m pip install pytz
python -m pip install wordsegment
python top.py
python path.py
- name: Commit changes
uses: EndBug/add-and-commit@v6
with:
author_name: asdf2014
author_email: [email protected]
message: "[Code Formatter & Update Leaderboard] by 🤖"
path: "Codes README.md README-zh.md .idea/dictionaries/yuzhouwan.xml"
pattern: "*.*"
force: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}