-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 1.12 KB
/
get_result.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
name: Get Result
on:
schedule:
- cron: "00 01 * * *"
jobs:
send-message:
runs-on: ubuntu-latest
steps:
- name: Send message to LINE Notify
env:
LINE_NOTIFY_TOKEN: ${{ secrets.LINE_NOTIFY_TOKEN }}
run: |
curl -X POST https://notify-api.line.me/api/notify \
-H "Authorization: Bearer $LINE_NOTIFY_TOKEN" \
-F "message=喚醒 Line 機器人"
sleep 300
curl -X POST https://notify-api.line.me/api/notify \
-H "Authorization: Bearer $LINE_NOTIFY_TOKEN" \
-F "message=NBA yesterday 20"
sleep 60
curl -X POST https://notify-api.line.me/api/notify \
-H "Authorization: Bearer $LINE_NOTIFY_TOKEN" \
-F "message=NHL冰球 yesterday 20"
sleep 60
curl -X POST https://notify-api.line.me/api/notify \
-H "Authorization: Bearer $LINE_NOTIFY_TOKEN" \
-F "message=MLB yesterday 20"