Skip to content

Commit 24c2668

Browse files
authored
Update stale.yml to increase max random wait to 180''
In the Moq repo (one of the more popular ones in devlooped), stale runs take ~18'', so make the random wait larger to avoid multiple repos starting at the same time.
1 parent 68f4c73 commit 24c2668

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: .github/workflows/stale.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
GH_TOKEN: ${{ github.token }}
3434
run: |
3535
# add random sleep since we run on fixed schedule
36-
sleep (get-random -max 60)
36+
$wait = get-random -max 180
37+
echo "Waiting random $wait seconds to start"
38+
sleep $wait
3739
# get currently authenticated user rate limit info
3840
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate
3941
# if we don't have at least 100 requests left, wait until reset

0 commit comments

Comments
 (0)