Skip to content

Commit 2cc3e97

Browse files
committed
Fix imports
1 parent e92ef24 commit 2cc3e97

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/node_modules
2-
deployment.yaml
2+
deployment.yaml
3+
/src

index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const core = require('@actions/core');
2-
const github = require('@actions/github');
3-
const fs = require('fs');
1+
import * as core from "@actions/core";
2+
import * as exec from "@actions/exec";
3+
import fs from "fs";
44

55
async function checkIfEndpointExists(
66
endpointName, resourceGroup, workspaceName
@@ -459,7 +459,7 @@ try {
459459
} else {
460460
console.log(`🔹 Checking if model '${modelName}' exists in workspace '${workspaceName}'...`);
461461

462-
const modelInWorkspaceExists = await checkIfModelInRegistryExists(
462+
const modelInWorkspaceExists = await checkIfModelInWorkspaceExists(
463463
modelName, modelVersion, workspaceName, resourceGroup
464464
);
465465
if (!modelInWorkspaceExists) {

0 commit comments

Comments
 (0)