-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) Β· 1.84 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
60
61
62
63
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@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Dependency
run: |
pip install xlrd zerohertzLib'[api]'
- name: Run Script
run: |
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
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
- name: Slack webhook
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: awesome-jmy
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
if_mention: failure,cancelled
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }}
if: always()