Skip to content

modify workflow time #7

modify workflow time

modify workflow time #7

Workflow file for this run

name: Get Result

Check failure on line 1 in .github/workflows/get_result.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/get_result.yml

Invalid workflow file

invalid `cron` attribute "0 0 1 12 2025"
on:
schedule:
- cron: "0 0 1 12 2025"
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"