Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
fetch-depth: 0
-
name: Extract tag message
id: get_message
# git-cliff may or may not pick the current tag message, difficult to tell when
# this works. We extract the tag message explicitly.
id: get-message
# tag message is not retrieved unless with fetch the ref explictly
run: |
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
MESSAGE=$(git tag -l '${{ github.ref_name }}' --format='%(contents:subject)

%(contents:body)
Expand All @@ -41,6 +41,9 @@ jobs:
printenv MESSAGE
echo 'EOF'
} >> "${GITHUB_OUTPUT}"

echo "Message in git tag ${{ github.ref_name }}"
echo "$MESSAGE"
-
name: Generate release notes
id: notes
Expand All @@ -52,9 +55,10 @@ jobs:
config: '.cliff.toml'
args: >-
--current
--with-tag-message '${{ steps.get_message.outputs.message }}'
--with-tag-message '${{ steps.get-message.outputs.message }}'
-
name: Create github release
uses: softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2
with:
body: ${{ steps.notes.outputs.content }}
generate_release_notes: false
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ using the special trailing character "-" is not implemented.
[codeql-badge]: https://github.com/go-openapi/jsonpointer/actions/workflows/codeql.yml/badge.svg
[codeql-url]: https://github.com/go-openapi/jsonpointer/actions/workflows/codeql.yml
<!-- Badges: release & docker images -->
[release-badge]: https://badge.fury.io/go/github.com%2Fgo-openapi%2Fjsonpointer.svg
[release-url]: https://badge.fury.io/go/github.com%2Fgo-openapi%2Fjsonpointer
[release-badge]: https://badge.fury.io/gh/go-openapi%2Fjsonpointer.svg
[release-url]: https://badge.fury.io/gh/go-openapi%2Fjsonpointer
[gomod-badge]: https://badge.fury.io/go/github.com%2Fgo-openapi%2Fjsonpointer.svg
[gomod-url]: https://badge.fury.io/go/github.com%2Fgo-openapi%2Fjsonpointer
<!-- Badges: code quality -->
[gocard-badge]: https://goreportcard.com/badge/github.com/go-openapi/jsonpointer
[gocard-url]: https://goreportcard.com/report/github.com/go-openapi/jsonpointer
Expand Down
Loading