From dbd8c79b77f156ff91eba45998d0ccb721bf3ed5 Mon Sep 17 00:00:00 2001 From: Marvin Buss Date: Wed, 25 Mar 2020 23:14:37 +0100 Subject: [PATCH] snake_case --- action.yml | 18 +++++++++--------- code/main.py | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/action.yml b/action.yml index 51061e6..88132f4 100644 --- a/action.yml +++ b/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 --role contributor --scopes /subscriptions//resourceGroups/ --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" diff --git a/code/main.py b/code/main.py index 1fda1d8..2b3ba9f 100644 --- a/code/main.py +++ b/code/main.py @@ -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: