Using a step of one job in if
condition in another job
#26536
-
Hello. I am trying to understand how to write a workflow. Basically, what I want to do is:
Any idea how I can do this? This is a reference workflow.yaml file:
Obviously this doesn’t work. Can someone tell me how I can achieve the desired result? Running the diff check in another job would be cool because there are multiple test jobs. Otherwise, I would have to add it as a step in all jobs. Any help is appreciated. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Environment variables do not carry over between jobs. You can use job outputs to make data available from a job to others that have a |
Beta Was this translation helpful? Give feedback.
-
Thank you very much Luna |
Beta Was this translation helpful? Give feedback.
Environment variables do not carry over between jobs. You can use job outputs to make data available from a job to others that have a
needs
dependency on it, seejobs.<job_id>.outputs
.