How can I suppress a job if publish isn't happening? #1106
Unanswered
IPWright83
asked this question in
Q&A
Replies: 1 comment
-
Also tried an online step as per the docs, which didn't run wether there was a changeset or not 😞
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The workflow I have set-up currently involves:
Basically the chromatic job, I want to suppress on the first run. It should only ever run, if a publish happens. But I've tried countless ways to disable it and can't get it working. Here's my workflow on my latest attempt:
You can see with my
debug_changesets
job I'm trying to find what variable I need. I'm currently trying to manually set it which isn't working either. I've tried so many combinations of echoing the value to get correct for myif
statement, but everything is just null... Here's what I've tried:needs.changesets_version.outputs.published
needs.changesets_version.outputs.hasChangesets
needs.changesets_version.outputs.release.published
needs.changesets_version.outputs.release.hasChangesets
Can anyone tell me what I need in the
if
to only run this job when a publish happens?Beta Was this translation helpful? Give feedback.
All reactions