Skip to content

Commit

Permalink
chore: update global workflows (#3551)
Browse files Browse the repository at this point in the history
  • Loading branch information
LizardByte-bot authored Jan 18, 2025
1 parent bc22cca commit 9d3a382
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,17 @@ jobs:
tag_name="${{ github.event.release.tag_name }}"
semver="${tag_name#v}"
repo_lower="$(echo "${{ github.event.repository.name }}" | tr '[:upper:]' '[:lower:]')"
file_name="_posts/releases/${repo_lower}/${semver//./-}.md"
# extract year, month, and day
year="${semver%%.*}"
month_day="${semver#*.}"
month_day="${month_day%%.*}"
# ensure month_day is 4 digits
month_day=$(printf "%04d" "$month_day")
# create the filename
file_name="_posts/releases/${year}-${month_day:0:2}-${month_day:2:2}-v${semver}.md"
mkdir -p "$(dirname "${file_name}")"
# create jekyll blog post
Expand Down

0 comments on commit 9d3a382

Please sign in to comment.