Skip to content

Commit b22e676

Browse files
committed
test updated code
Signed-off-by: Sachin Sahu <sachinksahu.431@gmail.com>
1 parent bc58a10 commit b22e676

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/changelog-generation.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,18 @@
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
run: |
2929
./generate-changelog.sh
30+
echo "tag_name=$(cat VERSION)" >> $GITHUB_ENV
31+
echo "todays_date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
32+
echo "prev_tag_name=$(git show HEAD~1:VERSION)" >> $GITHUB_ENV
3033
3134
- name: Update CHANGELOG.md header
3235
run: |
33-
echo "tag_name=$(cat VERSION)" >> $GITHUB_ENV
34-
echo "todays_date=$(date '+%Y-%m-%d')" >> $GITHUB_ENV
35-
sed -i '1s/# Unreleased/## ${env.tag_name} - ${env.todays_date}/' CHANGELOG.md
36+
echo "Tag Name: ${{ env.tag_name }}"
37+
echo "Today's Date: ${{ env.todays_date }}"
38+
NEW_HEADER="## ${{ env.tag_name }} / ${{ env.todays_date }}"
39+
sed -i '1s|.*|'"$NEW_HEADER"'|' CHANGELOG.md
3640
cat CHANGELOG.md
3741
38-
- name: Read Tag Name from VERSION File
39-
id: tag_name
40-
run: |
41-
echo "tag_name=$(cat VERSION)" >> $GITHUB_ENV
42-
echo "prev_tag_name=$(git show HEAD~1:VERSION)" >> $GITHUB_ENV
4342
- name: Get Base SHA from Tag
4443
id: base_sha
4544
run: |

0 commit comments

Comments
 (0)