Conditionally run set-variables
job in run-profiling.yaml
workflow file
#1123
Labels
set-variables
job in run-profiling.yaml
workflow file
#1123
At the moment the
set-variables
job in.github/workflows/run-profiling.yaml
runs unconditionally:TLOmodel/.github/workflows/run-profiling.yaml
Lines 31 to 46 in b9e157f
which means even if the subsequent steps are skipped we get a workflow success status rather than skipped status, which for example stops us using a query like https://github.com/UCL/TLOmodel/actions/workflows/run-profiling.yaml?query=is%3Asuccess to find successful runs of the workflow (or at least ones in which any profiling was performed!).
I think if we add an
if
condition something likewe should prevent the job being run when the succeeding jobs will be skipped, though then we do end up needing to keep the condition here in sync with the logic in the next jobs.
The text was updated successfully, but these errors were encountered: