We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577377f commit 33ae659Copy full SHA for 33ae659
.github/workflows/release.yml
@@ -24,7 +24,10 @@ jobs:
24
with:
25
fetch-depth: 0
26
- name: Generate Release Notes
27
- run: sed -n -e "1{/# /d;}" -e "2{/^$/d;}" -e "/# $(git describe --abbrev=0 --exclude="$(git describe --abbrev=0 --match='v*.*.*' --tags)" --match='v*.*.*' --tags | tr -d v)/q;p" CHANGELOG.md > release-notes.txt
+ run: |
28
+ export PREV_TAG=$(git tag --list 'v*' --sort=-version:refname | head -n 2 | tail -n 1)
29
+ export PREV_VERSION=${PREV_TAG//v}
30
+ sed -n -e "1{/# /d;}" -e "2{/^$/d;}" -e "/# $PREV_VERSION/q;p" CHANGELOG.md > release-notes.txt
31
- uses: actions/upload-artifact@v2
32
33
name: release-notes
0 commit comments