Skip to content

Question: extract only current release notes from body_path #673

@mu88

Description

@mu88

Question: Is there a way to extract only the current release notes from CHANGELOG.md using body_path?

Background:
I generate release notes for my apps using the .NET tool versionize, which updates the CHANGELOG.md file by appending the release notes for the current release to the notes of all previous releases. This means CHANGELOG.md always contains the full history of release notes.

Problem:
When creating a GitHub release with softprops/action-gh-release, I want to use the body_path parameter to provide release notes. However, since CHANGELOG.md contains notes for all releases, this would add the entire file as release notes for the current release, which is not what I want.

Question:
Is there any way for softprops/action-gh-release to automatically extract only the release notes for the current release from CHANGELOG.md? For example, can the action "diff" the changelog against the previous release, or is there a built-in way to specify which section to use as the release notes?

Use Case:
I would like to avoid manually editing the changelog or maintaining separate files for each release. Is there a recommended approach or existing feature in the action to handle this scenario?

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions