File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 29
29
30
30
# Update the date in CHANGELOG.md
31
31
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
32
33
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')
35
36
36
37
echo "changes<<EOF" >> $GITHUB_OUTPUT
37
38
echo "$CHANGES" >> $GITHUB_OUTPUT
42
43
git config --local user.email "action@github.com"
43
44
git config --local user.name "GitHub Action"
44
45
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"
46
47
git push
47
48
48
49
- name : Create Release
Original file line number Diff line number Diff line change @@ -23,3 +23,4 @@ All notable changes to the "Code Visualizer" extension will be documented in thi
23
23
## [ 0.0.2] - Previous release date
24
24
- Generate CodeFlow command
25
25
26
+
You can’t perform that action at this time.
0 commit comments