changelog-action icon indicating copy to clipboard operation
changelog-action copied to clipboard

Feature Request - no valid commits should not fail

Open anden-dev opened this issue 2 years ago • 1 comments

Love the action: I use it to draft release notes with writeToFile: false

At the moment the action will fail if there are no valid commits.

when there are no valid commits it fails with:

Error: No valid commits parsed since previous tag.

I would love to be able to skip the next step (for me here drafting the release) with an if like this:

if: >-
  steps.changelog.outputs.changes  != 'NA'

If there are no valid commits just return 'NA' or '' when not writing to file. This could also be just an additional mode failWhenResultEmpty: true|false where true is the default and the current behaviour.

Cheers, Andreas

anden-dev avatar Feb 10 '23 18:02 anden-dev

hey @anden-dev,

might be an old issue but would you mind sharing (if you have one) a temporary workaround for this?

rhenwinch avatar Jul 09 '24 12:07 rhenwinch