File tree 2 files changed +14
-14
lines changed
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -27766,32 +27766,32 @@ try {
27766
27766
const deploymentYamlFilePath = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput("deployment_yaml_file_path");
27767
27767
27768
27768
// Check if the required inputs are provided
27769
- if (!endpointName) {
27769
+ if (!endpointName || endpointName === "" ) {
27770
27770
throw new Error("Endpoint name is required.");
27771
27771
}
27772
27772
27773
- if (!resourceGroup) {
27773
+ if (!resourceGroup || resourceGroup === "" ) {
27774
27774
throw new Error("Resource group is required");
27775
27775
}
27776
27776
27777
- if (!workspaceName) {
27777
+ if (!workspaceName || workspaceName === "" ) {
27778
27778
throw new Error("Workspace name is required");
27779
27779
}
27780
27780
27781
- if (!modelName) {
27781
+ if (!modelName || modelName === "" ) {
27782
27782
throw new Error("Model name is required");
27783
27783
}
27784
27784
27785
- if (!modelVersion) {
27785
+ if (!modelVersion || modelVersion === "" ) {
27786
27786
throw new Error("Model version is required");
27787
27787
}
27788
27788
27789
- if (!traffic) {
27789
+ if (!traffic || traffic === "" ) {
27790
27790
throw new Error("Traffic is required");
27791
27791
}
27792
27792
27793
27793
// Check if deployment YAML file exists
27794
- if (!deploymentYamlFilePath) {
27794
+ if (!deploymentYamlFilePath || deploymentYamlFilePath === "" ) {
27795
27795
throw new Error("Deployment YAML file path is required.");
27796
27796
}
27797
27797
Original file line number Diff line number Diff line change @@ -372,32 +372,32 @@ try {
372
372
const deploymentYamlFilePath = core . getInput ( "deployment_yaml_file_path" ) ;
373
373
374
374
// Check if the required inputs are provided
375
- if ( ! endpointName ) {
375
+ if ( ! endpointName || endpointName === "" ) {
376
376
throw new Error ( "Endpoint name is required." ) ;
377
377
}
378
378
379
- if ( ! resourceGroup ) {
379
+ if ( ! resourceGroup || resourceGroup === "" ) {
380
380
throw new Error ( "Resource group is required" ) ;
381
381
}
382
382
383
- if ( ! workspaceName ) {
383
+ if ( ! workspaceName || workspaceName === "" ) {
384
384
throw new Error ( "Workspace name is required" ) ;
385
385
}
386
386
387
- if ( ! modelName ) {
387
+ if ( ! modelName || modelName === "" ) {
388
388
throw new Error ( "Model name is required" ) ;
389
389
}
390
390
391
- if ( ! modelVersion ) {
391
+ if ( ! modelVersion || modelVersion === "" ) {
392
392
throw new Error ( "Model version is required" ) ;
393
393
}
394
394
395
- if ( ! traffic ) {
395
+ if ( ! traffic || traffic === "" ) {
396
396
throw new Error ( "Traffic is required" ) ;
397
397
}
398
398
399
399
// Check if deployment YAML file exists
400
- if ( ! deploymentYamlFilePath ) {
400
+ if ( ! deploymentYamlFilePath || deploymentYamlFilePath === "" ) {
401
401
throw new Error ( "Deployment YAML file path is required." ) ;
402
402
}
403
403
You can’t perform that action at this time.
0 commit comments