Unreleased entry never appears in output
The readme suggests that a possible value of the output status is unreleased. One might assume that when there is an unreleased entry in the changelog, that the output would provide data for that entry, including the unreleased status. However, as far as I can tell, output always skips the unreleased entry and always returns the most recent released entry. In other words, output would never include a status of unreleased.
I am trying to have a later step in my job act differently depending on whether an unreleased entry exists. However, that doesn't seem to be possible with the current behavior.
For example, if: ${{ steps.changelog_reader.outputs.status == 'unreleased' }} always returns false. I need it to return true when an unreleased entry exists. Or at least I need some way to determine if an unreleased entry exists from within my workflow.
Hi @waylan !
However, as far as I can tell, output always skips the unreleased entry and always returns the most recent released entry.
Yes, that's true. The action returns by default only released versions.
I am trying to have a later step in my job act differently depending on whether an unreleased entry exists. However, that doesn't seem to be possible with the current behavior.
Ok so, you should be able to ask for the unreleased version entry and then check if it is empty or not.
To do that, use the version input like specified in the doc :
version: The exact version of the log entry you want to retreive or "Unreleased" for the unreleased entry. Optional. Defaults to the last version number.