Skip to content

Commit

Permalink
Update stale.yml to increase max random wait to 180''
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kzu authored Aug 27, 2024
1 parent 68f4c73 commit 24c2668
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
# add random sleep since we run on fixed schedule
sleep (get-random -max 60)
$wait = get-random -max 180
echo "Waiting random $wait seconds to start"
sleep $wait
# get currently authenticated user rate limit info
$rate = gh api rate_limit | convertfrom-json | select -expandproperty rate
# if we don't have at least 100 requests left, wait until reset
Expand Down

0 comments on commit 24c2668

Please sign in to comment.