Skip to content

Commit 961abed

Browse files
committed
Make the rustc-pull workflow run less often
1 parent 95b2d3c commit 961abed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/rustc-pull.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: rustc-pull
33
on:
44
workflow_dispatch:
55
schedule:
6-
# Run at 04:00 UTC every day
7-
- cron: '0 4 * * *'
6+
# Run at 04:00 UTC every Monday
7+
- cron: '0 4 * * 1'
88

99
jobs:
1010
pull:
@@ -94,7 +94,7 @@ jobs:
9494
else
9595
CREATED_AT=`gh pr list --author github-actions[bot] --state open -q 'map(select(.title=="Rustc pull update")) | .[0].createdAt' --json createdAt,title`
9696
PR_URL=`gh pr list --author github-actions[bot] --state open -q 'map(select(.title=="Rustc pull update")) | .[0].url' --json url,title`
97-
week_ago=$(date +%F -d '7 days ago')
97+
week_ago=$(date +%F -d '6 days ago')
9898
9999
# If there is an open PR that is at least a week old, post a message about it
100100
if [[ -n $DATE_GH && $DATE_GH < $week_ago ]]; then

0 commit comments

Comments
 (0)