From bab1ed3b83fad862a4e34e1d68ff73f9e0306624 Mon Sep 17 00:00:00 2001 From: David O'Sullivan <31728678+pivotal-david-osullivan@users.noreply.github.com> Date: Thu, 9 May 2024 13:18:40 +0100 Subject: [PATCH] Update release-reminder.yml --- .github/workflows/release-reminder.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-reminder.yml b/.github/workflows/release-reminder.yml index ff3c26928..ad47caae1 100644 --- a/.github/workflows/release-reminder.yml +++ b/.github/workflows/release-reminder.yml @@ -23,12 +23,12 @@ jobs: last_day_cutoff=$(expr $(date -d "-$(date +%d) days month" +%d) - 6) # Check if it's the second or last Thursday of the month # second thursday of the month will always be between day 8 and 14 (inclusive) - if [[ "$day_of_month" -ge "8" && "$day_of_month" -le "14" ]]; then + if [ "$day_of_month" -ge "8" && "$day_of_month" -le "14" ]; then echo "It's the second Thursday of the month" echo "bool=true" >> "${GITHUB_OUTPUT}" # last thursday of the month will always be within 6 days of the last day of the month # $last_day_cutoff=(# days in this month - 6) - elif [[ "$day_of_month" -ge "$last_day_cutoff" ]]; then + elif [ "$day_of_month" -ge "$last_day_cutoff" ]; then echo "It's the last Thursday of the month" echo "bool=true" >> "${GITHUB_OUTPUT}" else