;doc: ghrelnotes: simplify

This commit is contained in:
Simon Michael 2024-05-19 10:13:27 -10:00
parent fe301e1672
commit af568f1ae2
2 changed files with 7 additions and 7 deletions

View File

@ -128,8 +128,9 @@ jobs:
ls -lRFh artifacts ls -lRFh artifacts
- name: Generate github release notes - name: Generate github release notes
# ref should be the release's main tag name
run: | run: |
doc/ghrelnotes ${{ github.ref }} # ref should be the release's main tag name doc/ghrelnotes ${{ github.ref }} >ghrelnotes.md
- name: Create release - name: Create release
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # https://github.com/softprops/action-gh-release 2.0.5 uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # https://github.com/softprops/action-gh-release 2.0.5
@ -153,7 +154,7 @@ jobs:
# append_body Boolean Append to existing body instead of overwriting it # append_body Boolean Append to existing body instead of overwriting it
# make_latest String Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Can be true, false, or legacy. Uses GitHub api defaults if not provided # make_latest String Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Can be true, false, or legacy. Uses GitHub api defaults if not provided
# #
body_path: doc/ghrelnotes.md body_path: ghrelnotes.md
files: | files: |
artifacts/*.zip artifacts/*.zip
artifacts/*.tar.gz artifacts/*.tar.gz

View File

@ -1,16 +1,15 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# ghrelnotes REL - generate github release notes for REL, as ghrelnotes.md. -*- markdown -*- # ghrelnotes REL - generate github release notes for REL. -*- markdown -*-
cd "$(dirname $0)" cd "$(dirname $0)"
OUT=ghrelnotes.md cat <<'END'
cat >$OUT <<'END'
## Release notes ## Release notes
END END
export REL=$1 export REL=$1
../tools/getrelnotes $REL >>$OUT ../tools/getrelnotes $REL
envsubst '$REL' >>$OUT <<'END' envsubst '$REL' <<'END'
<details> <details>
<summary> <summary>