Skip to content

Commit

Permalink
automate command again
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieAlex committed May 22, 2024
1 parent 41c97f3 commit 13e8f76
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/CBA_lm.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: Send LINE Message
# name: Send LINE Message

on:
schedule:
- cron: "15 16 * * *"
# on:
# schedule:
# - cron: "15 16 * * *"

jobs:
send-message:
runs-on: ubuntu-latest
# jobs:
# send-message:
# runs-on: ubuntu-latest

steps:
- name: Send message to LINE Bot
env:
LINE_CHANNEL_ACCESS_TOKEN: ${{ secrets.LINE_CHANNEL_ACCESS_TOKEN }}
LINE_USER_ID: ${{ secrets.LINE_USER_ID }}
run: |
curl -X POST https://api.line.me/v2/bot/message/push \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LINE_CHANNEL_ACCESS_TOKEN" \
-d '{
"to": "'$LINE_USER_ID'",
"messages":[
{
"type":"text",
"text":"CBA lastmonth 30"
}
]
}'
# steps:
# - name: Send message to LINE Bot
# env:
# LINE_CHANNEL_ACCESS_TOKEN: ${{ secrets.LINE_CHANNEL_ACCESS_TOKEN }}
# LINE_USER_ID: ${{ secrets.LINE_USER_ID }}
# run: |
# curl -X POST https://api.line.me/v2/bot/message/push \
# -H "Content-Type: application/json" \
# -H "Authorization: Bearer $LINE_CHANNEL_ACCESS_TOKEN" \
# -d '{
# "to": "'$LINE_USER_ID'",
# "messages":[
# {
# "type":"text",
# "text":"CBA lastmonth 30"
# }
# ]
# }'
14 changes: 7 additions & 7 deletions .github/workflows/send_line.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Send LINE Messages

on:
schedule:
- cron: "20 16 * * *"
- cron: "25 16 * * *"
- cron: "26 16 * * *"
- cron: "27 16 * * *"
- cron: "28 16 * * *"
- cron: "30 16 * * *"
- cron: "31 16 * * *"
- cron: "03 16 * * *"
- cron: "08 16 * * *"
- cron: "09 16 * * *"
- cron: "10 16 * * *"
- cron: "11 16 * * *"
- cron: "13 16 * * *"
- cron: "14 16 * * *"
- cron: "00 01 * * *"
- cron: "05 01 * * *"
- cron: "06 01 * * *"
Expand Down

0 comments on commit 13e8f76

Please sign in to comment.