cycjimmy / semantic-release-action

GitHub Action for Semantic Release
https://github.com/marketplace/actions/action-for-semantic-release
MIT License
548 stars 98 forks source link

last_release_version still not output if no new release is published #137

Open mchestnut opened 1 year ago

mchestnut commented 1 year ago

Describe the bug When no new release is published, there is no last_release_version in the step output.

Workflow

  1. Create a workflow step using semantic-release-action and assign it an id of semantic.
  2. Create a step immediately after that step to echo ${{ steps.semantic.outputs.last_release_version }}.
  3. Run the github workflow with a commit that does not create a new release (ex: refactor).

Expected behavior Expect the last release version to be output.

Additional context Looking at the code for semantic-release, I think this is actually an expected result on their end. According to their docs, if no new release is published, the result object from semantic release should be false instead of an object.

semantic-release docs

alexsanderp commented 1 year ago

I have the same issue.

Is this supposed to work?

https://github.com/cycjimmy/semantic-release-action/commit/b1467cd17e70d963d7925a60266adb249ee2223d

Danielkiss9 commented 1 year ago

facing same issue. is there an estimate on when this will be fixed?

NikitaMasych commented 3 weeks ago

Hey guys, this issue still occurs. I am using currently latest version of the action - v4.1.1. Is there any fix available?