Skip to content

Commit

Permalink
formatting release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam McKee committed Jan 2, 2025
1 parent 3077d57 commit 9afa4e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gh_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ jobs:
TAG_NAME: ${{ needs.publish-cargo-crates.outputs.tag_name }}
VERSION: ${{ needs.publish-cargo-crates.outputs.version }}
run: |
NOTES=$(cat l3_cli/CHANGELOG.md | awk -v p="## $VERSION" -F":" '$0 ~ p{f=1;next} /## /{f=0} f')
CHANGELOG=$(cat l3_cli/CHANGELOG.md | awk -v p="## $VERSION" -F":" '$0 ~ p{f=1;next} /## /{f=0} f')
NOTES="[Published to crates.io](https://crates.io/crates/l3_cli) \r\n\r\n# Release notes \r\n\r\n$CHANGELOG"
CREATED_RELEASE=$(gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/eighty4/l3/releases \
-f tag_name="$TAG_NAME" \
-f name="CLI v$VERSION" \
-F body="# Release notes\r\n\r\n$NOTES" \
-F body="$NOTES" \
-F draft=false \
-F prerelease=false \
-F generate_release_notes=false)
Expand Down

0 comments on commit 9afa4e2

Please sign in to comment.