Skip to content

Commit 2a9e0df

Browse files
committed
changes in release yml
1 parent f81fcda commit 2a9e0df

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ jobs:
2929
3030
# Update the date in CHANGELOG.md
3131
sed -i "s/\[$VERSION\] - [0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}/[$VERSION] - $TODAY/" CHANGELOG.md
32+
sed -i "s/\[$VERSION\] - YYYY-MM-DD/[$VERSION] - $TODAY/" CHANGELOG.md
3233
33-
# Extract changes for this version
34-
CHANGES=$(sed -n "/## \[$VERSION\]/,/## \[/p" CHANGELOG.md | sed '$d')
34+
# Extract changes for this version with updated date
35+
CHANGES=$(sed -n "/## \[$VERSION\] - $TODAY/,/## \[/p" CHANGELOG.md | sed '$d')
3536
3637
echo "changes<<EOF" >> $GITHUB_OUTPUT
3738
echo "$CHANGES" >> $GITHUB_OUTPUT
@@ -42,7 +43,7 @@ jobs:
4243
git config --local user.email "action@github.com"
4344
git config --local user.name "GitHub Action"
4445
git add CHANGELOG.md
45-
git commit -m "Update CHANGELOG.md with today's date" || echo "No changes to commit"
46+
git commit -m "Update CHANGELOG.md with release date [skip ci]" || echo "No changes to commit"
4647
git push
4748
4849
- name: Create Release

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ All notable changes to the "Code Visualizer" extension will be documented in thi
2323
## [0.0.2] - Previous release date
2424
- Generate CodeFlow command
2525

26+

0 commit comments

Comments
 (0)