File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 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 : |
You can’t perform that action at this time.
0 commit comments