File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments