Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mchestnut opened this issue Nov 11, 2022 · 2 comments
Open

Comments

@mchestnut
Copy link

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
Copy link

I have the same issue.

Is this supposed to work?

b1467cd

@Danielkiss9
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants