chromaui/action skipping rebuild omit output prop `storybookUrl`
Bug report
Hello!
I recently faced an issue with chromaui/action@v11. When no rebuild is needed I have the following output:
Skipping rebuild of an already fully passed/accepted build
For now, no problem for me this seems fair. The issue with this is that when the build is skipped like so, the github action does not provide storybookUrl as output as it usually does. This leads to issues for us as we need it to display a deployment button on our pull requests with the storybookUrl.
The workaround I found is to pass forceRebuild: true as input as seen on this PR, but it might not be the best way to do it. I think there is an issue with the github action not providing the correct output especially storybookUrl.
The issue can be found on our github actions here: https://github.com/scaleway/ultraviolet/actions/runs/9077521594/job/24956851613?pr=3773
You can find our config here: https://github.com/scaleway/ultraviolet/blob/d23bfe6332ddff37dbb6f6b28ae6c694a5e838d3/.github/workflows/ci.yml#L160
Where we will get steps.chromatic.outputs.storybookUrl that is undefined when no rebuild is needed but correctly set when the build is needed.
If you need anymore details don't hesitate!
hey @matthprost I believed this behaviour is set by default for no rebuilds, but let me discuss it internally.
have you tried this workaround: https://www.chromatic.com/docs/faq/get-published-storybook-url-via-ci/?
Hi @cgbl-90 Any movement on this issue?
I'm also trying to understand how to work around the fact that the GH action doesn't fail with unreviewed changes, and also doesn't return build info when I re-run the workflow.
Doesn't that make the Chromatic GH action essentially useless? If it can't fail the build and it can't return build info consistently, what is it good for?
The URL of the Storybook which causes a rebuild to skip will now be returned from the GitHub Action output, see #1134 for an example.