File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,18 @@ jobs:
43
43
# Generate commit list since previous tag
44
44
COMMITS=$(git log --pretty=format:"- %s" $PREV_TAG..${{ github.ref_name }})
45
45
46
- cat << EOF > release_notes.md
46
+ cat << ' EOF' > release_notes.md
47
47
# # What's Changed
48
48
49
- $COMMITS
49
+ ${ COMMITS}
50
50
51
- **Full Changelog**: https://github.com/${{ github.repository }}/compare/$PREV_TAG...${{ github.ref_name }}
51
+ **Full Changelog**: https://github.com/${{ github.repository }}/compare/${ PREV_TAG} ...${{ github.ref_name }}
52
52
EOF
53
+ # Replace variables in the file
54
+ sed -i "s|\${COMMITS}|$COMMITS|g" release_notes.md
55
+ sed -i "s|\${{ github.repository }}|${{ github.repository }}|g" release_notes.md
56
+ sed -i "s|\${PREV_TAG}|$PREV_TAG|g" release_notes.md
57
+ sed -i "s|\${{ github.ref_name }}|${{ github.ref_name }}|g" release_notes.md
53
58
54
59
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
55
60
cat release_notes.md >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments