Skip to content

Commit

Permalink
Update cron_bypassCF.yaml
Browse files Browse the repository at this point in the history
let auto read success probability
  • Loading branch information
123hi123 authored Sep 7, 2024
1 parent d429ca9 commit 6c93de7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/cron_bypassCF.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: bypassCF cron (使用这个)
# GitHub.secrets优先级最高,即使没有设置对应的变量,它也会读取,这时变量为空值,导致报错,.env读取的变量无法覆盖这个值,使用了${PASSWORD_ESCAPED//\#/\\#}来对#转义,需要两个\,但是我直接在env文件使用这种方法是不行的,GitHub action是有效
on:
# schedule:
schedule:
# 每天 UTC 时间 18:00 运行
# - cron: "0 18 * * *"
- cron: "0 18 * * *"
- cron: "0 10 * * *"
- cron: "0 0 * * *"
- cron: "0 4 * * *"
workflow_dispatch: # 允许手动触发

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20 # 设置作业超时时间为20分钟
timeout-minutes: 5 # 设置作业超时时间为20分钟

strategy:
matrix:
Expand Down

0 comments on commit 6c93de7

Please sign in to comment.