Force push message
This commit is contained in:
@@ -4,6 +4,11 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: "*/30 * * * *" # 每30分钟执行一次
|
- cron: "*/30 * * * *" # 每30分钟执行一次
|
||||||
workflow_dispatch: # 允许手动触发workflow
|
workflow_dispatch: # 允许手动触发workflow
|
||||||
|
inputs:
|
||||||
|
send_message:
|
||||||
|
description: "是否发送信息?"
|
||||||
|
default: "False"
|
||||||
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
CheckScores:
|
CheckScores:
|
||||||
@@ -78,7 +83,7 @@ jobs:
|
|||||||
GITHUB_WORKFLOW: ${{ github.workflow }}
|
GITHUB_WORKFLOW: ${{ github.workflow }}
|
||||||
GITHUB_RUN_NUMBER: ${{ github.run_number }}
|
GITHUB_RUN_NUMBER: ${{ github.run_number }}
|
||||||
GITHUB_RUN_ID: ${{ github.run_id }}
|
GITHUB_RUN_ID: ${{ github.run_id }}
|
||||||
FORCE_PUSH_MESSAGE: ${{ github.event.inputs.send_message || false }} # 新增的选项功能
|
FORCE_PUSH_MESSAGE: ${{ github.event.inputs.send_message }}
|
||||||
run: |
|
run: |
|
||||||
export BEIJING_TIME=$(TZ='Asia/Shanghai' date +'%Y-%m-%d %H:%M:%S:%3N')
|
export BEIJING_TIME=$(TZ='Asia/Shanghai' date +'%Y-%m-%d %H:%M:%S:%3N')
|
||||||
python main.py
|
python main.py
|
||||||
|
|||||||
Reference in New Issue
Block a user