We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cd5393 commit 11d50a7Copy full SHA for 11d50a7
.github/workflows/release.yml
@@ -65,6 +65,12 @@ jobs:
65
VER="${TAG#v}"
66
# Extract the section between this version's header and the next
67
awk "/^## v${VER//./\\.} /{found=1; next} /^## v[0-9]/{if(found) exit} found" CHANGELOG.md > /tmp/release_notes.md
68
+ PREV_TAG=$(git tag --sort=-v:refname | grep -E '^v[0-9]' | sed -n '2p')
69
+ if [ -n "$PREV_TAG" ]; then
70
+ REPO="${{ github.repository }}"
71
+ printf '\n---\n\n**Detailed Changes**: [%s...%s](https://github.com/%s/compare/%s...%s)\n' \
72
+ "$PREV_TAG" "$TAG" "$REPO" "$PREV_TAG" "$TAG" >> /tmp/release_notes.md
73
+ fi
74
75
- name: Create GitHub Release
76
if: steps.release.outputs.released == 'true'
0 commit comments