Skip to content

Commit

Permalink
Merge branch 'Roang-zero1/issue6'
Browse files Browse the repository at this point in the history
  • Loading branch information
Roang-zero1 committed Jun 27, 2022
2 parents 0879593 + adfa0eb commit c05f2d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## v2.2.0

- Add output parameter for parsed change log content (Fixes [#6](https://github.com/Roang-zero1/github-create-release-action/issues/6))
- Updated to latest submark version (Fixes [#1](https://github.com/Roang-zero1/github-create-release-action/issues/1))
- Fix parsing for tags with slashes (Pull Request #9)

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ inputs:
description: "Heading level at which the tag headings exist."
default: "h2"
required: false
outputs:
changelog:
description: "Parsed content from the provided changelog file"

runs:
using: "docker"
image: "Dockerfile"
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ create_release_data() {
RELEASE_BODY=$(submark -O --$INPUT_CHANGELOG_HEADING $TAG $INPUT_CHANGELOG_FILE)
if [ -n "${RELEASE_BODY}" ]; then
echo "Changelog entry found, adding to release"
echo "::set-output name=changelog::$(echo ${RELEASE_BODY})"
RELEASE_DATA=$(echo ${RELEASE_DATA} | jq --arg body "${RELEASE_BODY}" '.body = $body')
else
echo "\e[31mChangelog entry not found!\e[0m"
Expand Down

0 comments on commit c05f2d3

Please sign in to comment.