Skip to content

Commit f23122d

Browse files
Updating github-config
1 parent 82d6794 commit f23122d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release-reminder.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- name: Should run
1616
id: should_run
1717
run: |
18+
set -eu
1819
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
1920
echo "Skipping date check, because workflow was run manually"
2021
echo "bool=true" >> "${GITHUB_OUTPUT}"
@@ -23,12 +24,12 @@ jobs:
2324
last_day_cutoff=$(expr $(date -d "-$(date +%d) days month" +%d) - 6)
2425
# Check if it's the second or last Thursday of the month
2526
# second thursday of the month will always be between day 8 and 14 (inclusive)
26-
if [[ "$day_of_month" -ge "8" && "$day_of_month" -le "14" ]]; then
27+
if [ "$day_of_month" -ge "8" && "$day_of_month" -le "14" ]; then
2728
echo "It's the second Thursday of the month"
2829
echo "bool=true" >> "${GITHUB_OUTPUT}"
2930
# last thursday of the month will always be within 6 days of the last day of the month
3031
# $last_day_cutoff=(# days in this month - 6)
31-
elif [[ "$day_of_month" -ge "$last_day_cutoff" ]]; then
32+
elif [ "$day_of_month" -ge "$last_day_cutoff" ]; then
3233
echo "It's the last Thursday of the month"
3334
echo "bool=true" >> "${GITHUB_OUTPUT}"
3435
else

0 commit comments

Comments
 (0)