Skip to content

Commit

Permalink
Merge pull request #1476 from o1-labs/fix/use-base-10-week
Browse files Browse the repository at this point in the history
fix(release.yml): convert `NUM_WEEK` to base 10 before comparing if to release
  • Loading branch information
MartinMinkov committed Mar 4, 2024
2 parents 64a4beb + 8538746 commit 6943c15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- name: Check if it's an even week
run: |
WEEK_NUM=$(date +'%V')
WEEK_NUM=$((10#$WEEK_NUM))
if [ $((WEEK_NUM % 2)) -ne 0 ]; then
echo "Odd week number ($WEEK_NUM), terminating job."
exit 1
Expand Down

0 comments on commit 6943c15

Please sign in to comment.