diff --git "a/.github/workflows/\347\255\276\345\210\260.yml" "b/.github/workflows/\347\255\276\345\210\260.yml" index 761a68c..23ff1e6 100644 --- "a/.github/workflows/\347\255\276\345\210\260.yml" +++ "b/.github/workflows/\347\255\276\345\210\260.yml" @@ -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 环境