Can we set runs-on: parameter during run time
I have a requirement where I need to run the second job using the output of the first job the first job runs and decides on which runner the second job has to run so my requirement is can the runs-on parameter take variable ???
While I haven't tried, taking a quick look at the workflow definition, the below code should be good.
needs: job1
runs-on: ${{needs.job1.outputs.output1}}
name: CI_BUILD_APP
needs: [CI_TRIGGER_APP]
runs-on: ${{needs.CI_TRIGGER_APP.outputs.node-label}}
getting the below error
Error when evaluating 'runs-on' for job 'CI_BUILD_APP'. .github/workflows/CI_BUILD_APP.yaml (Line: 166, Col: 14): Unexpected type of value '', expected type: OneOf.
yeah as far as I checked, runs-on only accepts input params, not any like env or ouputs...
@fhammerl Any updates on this?