Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ytea519 authored Jan 22, 2025
1 parent 711561a commit 0df66c0
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/main.yml
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 # 优化克隆深度

Expand Down

0 comments on commit 0df66c0

Please sign in to comment.