Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Yuan <[email protected]>
  • Loading branch information
SamYuan1990 committed Jun 15, 2024
1 parent e16e421 commit 00fc383
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function setupcluster() {
let command = parameterExport +` && cd local-dev-cluster && bash -xc './main.sh up'`;
core.info('command going to be executed: ' + command);
executeCommand(command, "fail to setup local-dev-cluster")
executeCommand(`cp ./local-dev-cluster/.kube/config /tmp/kubeconfig`)
executeCommand(`cp ./local-dev-cluster/.kube/config /tmp/kubeconfig/`)
}

async function run() {
Expand All @@ -107,7 +107,7 @@ async function run() {
const local_dev_cluster_version = getInputOrDefault('local_dev_cluster_version', 'main');
core.info(`Get local-cluster-dev with version `+ local_dev_cluster_version);
// if there is local-cluster-dev folder skip
let is_local_dev_cluster = shell.exec("ls local_dev_cluster");
let is_local_dev_cluster = shell.exec("ls ./local_dev_cluster");
if (is_local_dev_cluster.code !=0) {
executeCommand("git clone -b "+local_dev_cluster_version+" https://github.com/sustainable-computing-io/local-dev-cluster.git --depth=1", "fail to get local-dev-cluster");
}
Expand Down

0 comments on commit 00fc383

Please sign in to comment.