forked from Rockytkg/AutoMoGuDingCheckIn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
name: "打卡" | ||
名字: "打卡" | ||
|
||
# 明确触发条件 | ||
on: | ||
workflow_dispatch: # 手动触发 | ||
schedule: | ||
- cron: "59 23 * * *" | ||
- cron: "26 0 * * *" | ||
- cron: "50 9 * * *" # UTC 09:00 / 北京时间 17:00 | ||
在: | ||
工作流_调度: # 手动触发 | ||
日程安排: | ||
- 时间单位: "55 23 * * *"-克朗:“59 23 * * *” | ||
- 时间单位: "0 0 * * *"-克朗:“26 0 * * *” | ||
- 时间单位: "40 9 * * *"- cron: "50 9 * * *" # UTC 09:00 /北京时间 17:00# UTC 09:00 / 北京时间 17:00 | ||
|
||
# 配置并发控制,避免任务重叠执行 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 # 添加超时限制 | ||
|
||
steps: | ||
# 设置时区为 Asia/Shanghai | ||
- name: Set timezone | ||
uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: "Asia/Shanghai" | ||
并发: | ||
组: 群组:$ { { github . workflow } }-$ { { github . ref } }{{ github.workflow }}-${{ github.ref }} | ||
正在取消: 真实的 | ||
|
||
工作: | ||
建设: | ||
连续运行: 运行:Ubuntu-最新版 | ||
超时-分钟: 超时-分钟:10 #添加超时限制# 添加超时限制 | ||
|
||
步伐: | ||
# 设置时区为亚洲/上海# 设置时区为亚洲/上海 | ||
- 名字: - name:设置时区 | ||
使用: 用法:szenius/[email protected] | ||
随着: | ||
时区Linux: “亚洲/上海” | ||
|
||
# 检出代码仓库 | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- 名字: 签出存储库 | ||
使用: 动作/签出@v4 | ||
with: | ||
fetch-depth: 1 # 优化克隆深度 | ||
|
||
|