| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1cd5393 commit 11d50a7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,6 +65,12 @@ jobs: | |||
| 65 | 65 | VER="${TAG#v}" | |
| 66 | 66 | # Extract the section between this version's header and the next | |
| 67 | 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 | ||
| 68 | 74 | ||
| 69 | 75 | - name: Create GitHub Release | |
| 70 | 76 | if: steps.release.outputs.released == 'true' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments