Skip to content

Commit

Permalink
More granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
rmens committed May 3, 2024
1 parent 79ffb9d commit a31d5e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/noodband.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
- name: Wait for top of the hour
run: |
CURRENT_MINUTE=$(date +%M)
SECONDS_TO_NEXT_HOUR=$(( (60 - $CURRENT_MINUTE) * 60 ))
CURRENT_SECOND=$(date +%S)
SECONDS_TO_NEXT_HOUR=$(( (60 - $CURRENT_MINUTE) * 60 - $CURRENT_SECOND ))
echo "Waiting $SECONDS_TO_NEXT_HOUR seconds for the top of the hour."
sleep $SECONDS_TO_NEXT_HOUR
Expand Down

0 comments on commit a31d5e8

Please sign in to comment.