aml-run icon indicating copy to clipboard operation
aml-run copied to clipboard

Get environment variables from GitHub workflow into python script running in AzureML

Open Paandaman opened this issue 3 years ago • 1 comments

I have two different pipelines in AzureML that I would like to trigger if any files related to them is changed in my repository. If there's only been changes to the files associated with one of the pipelines I only want to trigger that one and now the other. I've implemented this logic in a bash script that runs as a step in my github workflow and saves which of the pipelines to run to an environment variable.

My plan was then to make the aml-run action trigger a python script in azure-ml that will read in this environment variable and trigger the right pipelines. My problem is that if I set the environment variable in the Azure/aml-run@v1 step then it's not propagated to the run in azure-ml and I cannot retrieve it within the python script.

Is there any way I could get this variable into the python script I have defined in run_config.yml? I can see that there are arguments for setting both environment variables as well as arguments in the run_config.yml but would it be possible to change this based on what I send in to the aml-run action?

Paandaman avatar May 12 '21 14:05 Paandaman

Hey @Paandaman did you find any solution for this?

emivoz avatar Dec 06 '23 14:12 emivoz