Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/签到.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ name: 签到
on:
workflow_dispatch:
schedule:
- cron: '10 17 * * *'
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
run:
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 150
steps:
- name: 随机延迟(仅定时触发,落在北京时间 08:00-10:00)
if: ${{ github.event_name == 'schedule' }}
run: |
DELAY=$(( RANDOM % 121 ))
echo "随机延迟 ${DELAY} 分钟,预计北京时间 08:00 后约 ${DELAY} 分触发签到"
sleep ${DELAY}m
- name: 检出仓库
uses: actions/checkout@v4
- name: 创建 Node 环境
Expand Down