Skip to content

Commit

Permalink
Improve repositores code
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Oct 13, 2024
1 parent faa0521 commit ee1c68d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
echo "Rate Limit: $LIMIT"
echo "Remaining Requests: $REMAINING"
if [[ "$REMAINING" -eq 0 ]]; then
# Check if the remaining value is a number before comparing
if [[ "$REMAINING" =~ ^[0-9]+$ && "$REMAINING" -eq 0 ]]; then
RESET_DATE=$(date -d @"$RESET")
echo "Rate limit exceeded. Resets at: $RESET_DATE"
exit 1
Expand Down

0 comments on commit ee1c68d

Please sign in to comment.