Skip to content

Commit

Permalink
fix(release.yml): add conversion of WEEK_NUM to decimal to prevent er…
Browse files Browse the repository at this point in the history
…rors when WEEK_NUM starts with a zero
  • Loading branch information
MartinMinkov committed Mar 4, 2024
1 parent 64a4beb commit 8538746
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 8538746

Please sign in to comment.