Skip to content

Commit

Permalink
Add Time Check to Prevent Execution of Check Script Between 00:00 and…
Browse files Browse the repository at this point in the history
… 01:00 (#1659)
  • Loading branch information
trizin authored Oct 9, 2024
1 parent b16f582 commit b676b36
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/check_mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Check if current time is between 00:00 and 01:00
run: |
current_hour=$(date -u +"%H")
if [ "$current_hour" -ge 0 ] && [ "$current_hour" -lt 1 ]; then
echo "Current time is between 00:00 and 01:00, exiting..."
exit 0
fi
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit b676b36

Please sign in to comment.