Force push message

This commit is contained in:
NianBroken
2024-02-07 01:28:53 +08:00 Unverified
parent cc696cb7c3
commit d8767aff60
+6 -1
View File
@@ -4,6 +4,11 @@ on:
schedule:
- cron: "*/30 * * * *" # 每30分钟执行一次
workflow_dispatch: # 允许手动触发workflow
inputs:
send_message:
description: "是否发送信息?"
default: "False"
required: false
jobs:
CheckScores:
@@ -78,7 +83,7 @@ jobs:
GITHUB_WORKFLOW: ${{ github.workflow }}
GITHUB_RUN_NUMBER: ${{ github.run_number }}
GITHUB_RUN_ID: ${{ github.run_id }}
FORCE_PUSH_MESSAGE: ${{ github.event.inputs.send_message || false }} # 新增的选项功能
FORCE_PUSH_MESSAGE: ${{ github.event.inputs.send_message }}
run: |
export BEIJING_TIME=$(TZ='Asia/Shanghai' date +'%Y-%m-%d %H:%M:%S:%3N')
python main.py