-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) Β· 1.72 KB
/
main.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
name: Download List & Vis
on:
schedule:
- cron: "0 0 1,11,21 * *"
workflow_dispatch:
env:
WEBHOOK: ${{ secrets.WEBHOOK }}
jobs:
workflow:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install Dependency
run: |
pip install requests pandas xlrd seaborn matplotlib
sudo cp prop/DoHyeon-Regular.ttf /usr/share/fonts/
sudo fc-cache -f -v
rm ~/.cache/matplotlib -fr
- name: Run Script
run: |
rm -f prop/*/*.png
rm -f prop/*/*.md
rm -rf prop/time
python main.py
- name: Move XLS File to data Directory
run: |
mkdir -p data/
mv *.xls data/
- name: Commit and Push
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add data
git commit -m ":monocle_face: Add: Data" || echo "data: No changes to commit"
git add prop/*/*.md
git commit -m ":rocket: Docs: Rank" || echo "prop/*/*.md: No changes to commit"
git add prop/*/*.png
git commit -m ":art: Update: Visualization" || echo "prop/*/*.png: No changes to commit"
git add prop/time.tsv
git add prop/time
git commit -m ":alarm_clock: Update: Time Series" || echo "time.tsv, prop/time: No changes to commit"
git add -A
git commit -m ":bento: Update: Etc." || echo "Etc.: No changes to commit"
git push