-
Notifications
You must be signed in to change notification settings - Fork 25
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
ci: Simplify detect_jobs_to_run
output (and related if
)
#4307
Conversation
Original approach of making it fully dynamic does not work because of https://docs.github.com/en/actions/learn-github-actions/contexts#github-context:~:text=the%20current%20job.-,Note%3A%20This%20context%20property%20is%20set%20by%20the%20Actions%20runner%2C%20and%20is%20only%20available%20within%20the%20execution%20steps%20of%20a%20job.%20Otherwise%2C%20the%20value%20of%20this%20property%20will%20be%20null.,-github.path
|
if
for detect_jobs_to_run result
if
for detect_jobs_to_run resultdetect_jobs_to_run
output (and related if
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks!
Note: I was curious to check and everything looks good in this PR #4315 |
Checking the object was always a bit awkward, so I changed it to just write an array of the needed jobs instead of all jobs with true/false. I think that simplified the
if
a bit.