зеркало из https://github.com/Azure/aml-run.git
snake_case
This commit is contained in:
Родитель
8ff125aff4
Коммит
dbd8c79b77
18
action.yml
18
action.yml
|
@ -2,27 +2,27 @@ name: "Azure Machine Learning Run Action"
|
|||
description: "Submit a run to an Azure Machine Learning Workspace with this GitHub Action"
|
||||
author: "azure/gh-aml"
|
||||
inputs:
|
||||
azureCredentials:
|
||||
azure_credentials:
|
||||
description: "Paste output of `az ad sp create-for-rbac --name <your-sp-name> --role contributor --scopes /subscriptions/<your-subscriptionId>/resourceGroups/<your-rg> --sdk-auth` as value of secret variable: AZURE_CREDENTIALS"
|
||||
required: true
|
||||
parametersFile:
|
||||
parameters_file:
|
||||
description: "JSON file including the parameters of the run."
|
||||
required: true
|
||||
default: "run.json"
|
||||
outputs:
|
||||
experimentName:
|
||||
experiment_name:
|
||||
description: "Name of the experiment of the run"
|
||||
runId:
|
||||
run_id:
|
||||
description: "ID of the run"
|
||||
runUrl:
|
||||
run_url:
|
||||
description: "URL to the run in the Azure Machine Learning Studio"
|
||||
runMetrics:
|
||||
run_metrics:
|
||||
description: "Metrics of the run (will only be provided if wait_for_completion is set to True)"
|
||||
publishedPipelineId:
|
||||
published_pipeline_id:
|
||||
description: "Id of the publised pipeline (will only be provided if pipeline_publish is set to True and pipeline_name was provided)"
|
||||
publishedPipelineStatus:
|
||||
published_pipeline_status:
|
||||
description: "Status of the publised pipeline (will only be provided if pipeline_publish is set to True and pipeline_name was provided)"
|
||||
publishedPipelineEndpoint:
|
||||
published_pipeline_endpoint:
|
||||
description: "Endpoint of the publised pipeline (will only be provided if pipeline_publish is set to True and pipeline_name was provided)"
|
||||
branding:
|
||||
icon: "chevron-up"
|
||||
|
|
|
@ -16,8 +16,8 @@ from utils import AMLConfigurationException, AMLExperimentConfigurationException
|
|||
def main():
|
||||
# Loading input values
|
||||
print("::debug::Loading input values")
|
||||
parameters_file = os.environ.get("INPUT_PARAMETERSFILE", default="run.json")
|
||||
azure_credentials = os.environ.get("INPUT_AZURECREDENTIALS", default="{}")
|
||||
parameters_file = os.environ.get("INPUT_PARAMETERS_FILE", default="run.json")
|
||||
azure_credentials = os.environ.get("INPUT_AZURE_CREDENTIALS", default="{}")
|
||||
try:
|
||||
azure_credentials = json.loads(azure_credentials)
|
||||
except JSONDecodeError:
|
||||
|
|
Загрузка…
Ссылка в новой задаче