1 parent 2b9d051 commit 8311246Copy full SHA for 8311246
1 file changed
.github/workflows/ci.yml
@@ -50,9 +50,28 @@ jobs:
50
with:
51
name: binaries
52
53
+ - uses: actions/checkout@v4
54
+ with:
55
+ fetch-depth: 0
56
+
57
+ - name: Extract release notes from tag
58
+ id: notes
59
+ run: |
60
+ # Get the annotated tag message (or commit message for lightweight tags)
61
+ NOTES=$(git tag -l --format='%(contents)' "${GITHUB_REF_NAME}")
62
+ if [ -z "$NOTES" ]; then
63
+ NOTES=$(git log -1 --format='%B' "${GITHUB_REF_NAME}")
64
+ fi
65
+ {
66
+ echo 'RELEASE_NOTES<<EOF'
67
+ echo "$NOTES"
68
+ echo 'EOF'
69
+ } >> "$GITHUB_OUTPUT"
70
71
- name: Create GitHub Release
72
uses: softprops/action-gh-release@v2
73
74
+ body: ${{ steps.notes.outputs.RELEASE_NOTES }}
75
files: |
76
doubletake
77
doubletake-ctl
0 commit comments