File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -27766,32 +27766,32 @@ try {
2776627766 const deploymentYamlFilePath = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput("deployment_yaml_file_path");
2776727767
2776827768 // Check if the required inputs are provided
27769- if (!endpointName) {
27769+ if (!endpointName || endpointName === "" ) {
2777027770 throw new Error("Endpoint name is required.");
2777127771 }
2777227772
27773- if (!resourceGroup) {
27773+ if (!resourceGroup || resourceGroup === "" ) {
2777427774 throw new Error("Resource group is required");
2777527775 }
2777627776
27777- if (!workspaceName) {
27777+ if (!workspaceName || workspaceName === "" ) {
2777827778 throw new Error("Workspace name is required");
2777927779 }
2778027780
27781- if (!modelName) {
27781+ if (!modelName || modelName === "" ) {
2778227782 throw new Error("Model name is required");
2778327783 }
2778427784
27785- if (!modelVersion) {
27785+ if (!modelVersion || modelVersion === "" ) {
2778627786 throw new Error("Model version is required");
2778727787 }
2778827788
27789- if (!traffic) {
27789+ if (!traffic || traffic === "" ) {
2779027790 throw new Error("Traffic is required");
2779127791 }
2779227792
2779327793 // Check if deployment YAML file exists
27794- if (!deploymentYamlFilePath) {
27794+ if (!deploymentYamlFilePath || deploymentYamlFilePath === "" ) {
2779527795 throw new Error("Deployment YAML file path is required.");
2779627796 }
2779727797
Original file line number Diff line number Diff line change @@ -372,32 +372,32 @@ try {
372372 const deploymentYamlFilePath = core . getInput ( "deployment_yaml_file_path" ) ;
373373
374374 // Check if the required inputs are provided
375- if ( ! endpointName ) {
375+ if ( ! endpointName || endpointName === "" ) {
376376 throw new Error ( "Endpoint name is required." ) ;
377377 }
378378
379- if ( ! resourceGroup ) {
379+ if ( ! resourceGroup || resourceGroup === "" ) {
380380 throw new Error ( "Resource group is required" ) ;
381381 }
382382
383- if ( ! workspaceName ) {
383+ if ( ! workspaceName || workspaceName === "" ) {
384384 throw new Error ( "Workspace name is required" ) ;
385385 }
386386
387- if ( ! modelName ) {
387+ if ( ! modelName || modelName === "" ) {
388388 throw new Error ( "Model name is required" ) ;
389389 }
390390
391- if ( ! modelVersion ) {
391+ if ( ! modelVersion || modelVersion === "" ) {
392392 throw new Error ( "Model version is required" ) ;
393393 }
394394
395- if ( ! traffic ) {
395+ if ( ! traffic || traffic === "" ) {
396396 throw new Error ( "Traffic is required" ) ;
397397 }
398398
399399 // Check if deployment YAML file exists
400- if ( ! deploymentYamlFilePath ) {
400+ if ( ! deploymentYamlFilePath || deploymentYamlFilePath === "" ) {
401401 throw new Error ( "Deployment YAML file path is required." ) ;
402402 }
403403
You can’t perform that action at this time.
0 commit comments