This commit is contained in:
NianBroken
2024-02-15 12:39:20 +08:00 Unverified
parent d5f693889a
commit f885d1e37e
+5 -1
View File
@@ -1,5 +1,7 @@
# 工作流的名称
name: CheckScores name: CheckScores
# 工作流运行的名称
run-name: ${{ github.workflow }} ${{ github.sha }} run-name: ${{ github.workflow }} ${{ github.sha }}
on: on:
@@ -8,7 +10,7 @@ on:
workflow_dispatch: # 可以手动执行 workflow_dispatch: # 可以手动执行
inputs: inputs:
force_push_message: force_push_message:
description: "是否强制推送信息" description: "Whether or not to force a push message?"
required: true required: true
default: "False" default: "False"
type: choice type: choice
@@ -17,6 +19,7 @@ on:
- "False" - "False"
jobs: jobs:
# 同步上游分支
SyncFork: SyncFork:
name: SyncFork name: SyncFork
@@ -106,6 +109,7 @@ jobs:
git commit -m "Update branch" || echo "This branch is not behind the upstream" git commit -m "Update branch" || echo "This branch is not behind the upstream"
git push origin main --force git push origin main --force
# 检查成绩
CheckScores: CheckScores:
name: CheckScores name: CheckScores