Skip to content

Commit

Permalink
prevent rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahSiegel committed Apr 5, 2023
1 parent 8f98db9 commit f73f78d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/housekeeper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ for id in $output; do
[[ $id != ".git"* ]] && echo "gh api --silent $runs/$id -X DELETE" || echo "$id"
fi
[[ $id = ".git"* ]] && summary+=" * $id" || summary+=" $id\n"

# Prevent rate limit
sleep 1;
done

echo "housekeeping_output=$(echo "${summary}")" >>$GITHUB_OUTPUT

0 comments on commit f73f78d

Please sign in to comment.