66jobs :
77 create_release_note :
88 runs-on : ubuntu-latest
9- outputs :
10- included-files-list : ${{ steps.included-files-list.outputs }}
119 steps :
1210 - uses : actions/checkout@v5
1311 - name : Obtain Included Files List
@@ -16,31 +14,34 @@ jobs:
1614 helpers="$(cargo package --list -p hooq-helpers)"
1715 macros="$(cargo package --list -p hooq-macros)"
1816 hooq="$(cargo package --list -p hooq)"
19- cat <<EOF >> "$GITHUB_OUTPUT"
20- <details>
21- <summary>Files included in hooq-helpers</summary>
2217
23- $(echo "$helpers" | tr ' ' '\n' | sed -e 's/^/- /g')
18+ {
19+ echo 'Included files in this release:'
20+ echo
21+ echo
22+ echo '<details>'
23+ echo '<summary>Files included in hooq-helpers</summary>'
2424
25- </details>
26- <details>
27- <summary>Files included in hooq-macros</summary>
25+ echo "$helpers" | sed -e 's/^/- /g'
2826
29- $(echo "$macros" | tr ' ' '\n' | sed -e 's/^/- /g')
27+ echo '</details>'
28+ echo '<details>'
29+ echo '<summary>Files included in hooq-macros</summary>'
3030
31- </details>
32- <details>
33- <summary>Files included in hooq</summary>
31+ echo "$macros" | sed -e 's/^/- /g'
3432
35- $(echo "$hooq" | tr ' ' '\n' | sed -e 's/^/- /g')
33+ echo '</details>'
34+ echo '<details>'
35+ echo '<summary>Files included in hooq</summary>'
3636
37- </details>
38- EOF
37+ echo "$hooq" | sed -e 's/^/- /g'
38+ echo '</details>'
39+ } > notes-extra.md
3940 - name : Create Release Note
4041 env :
4142 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4243 TAG : ${{ github.ref_name }}
4344 run : |
4445 gh release create "$TAG" --draft \
4546 --generate-notes \
46- --notes "Included files in this release:\n\n${{ steps.included-files-list.outputs }}"
47+ --notes-file notes-extra.md
0 commit comments