Skip to content

Commit

Permalink
Update scheduled-advanced.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
katydecorah committed Jun 18, 2024
1 parent ecaf867 commit be2b0f6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/scheduled-advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,15 @@ jobs:
local season=$1
local start_date=$2
local end_date=$3
local post_title=""
echo "POST_TITLE=${YEAR} ${season}" >> $GITHUB_ENV
if [ "$season" = "Winter" ]; then
post_title="$(($YEAR - 1))/${YEAR} ${season}"
else
post_title="${YEAR} ${season}"
fi
echo "POST_TITLE=${post_title}" >> $GITHUB_ENV
echo "START_DATE=${start_date}" >> $GITHUB_ENV
echo "END_DATE=${end_date}" >> $GITHUB_ENV
}
Expand Down

0 comments on commit be2b0f6

Please sign in to comment.