Fix: check for retained workspace

pull/461/head
Frostebite 2022-10-06 00:52:01 +01:00
parent cf8c2c2a6d
commit d8f9e1733b
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -5146,7 +5146,7 @@ class BuildAutomationWorkflow {
chmod +x ${builderPath}`;
return `export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
echo "game ci cloud runner clone"
if [ -d "${cloud_runner_folders_1.CloudRunnerFolders.ToLinuxFolder(cloud_runner_folders_1.CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute)}" ]; then echo "Retained Workspace Already Exists!"; else ${commands.replace(`\n`, ` && `)}; fi
if [ -e "${cloud_runner_folders_1.CloudRunnerFolders.ToLinuxFolder(cloud_runner_folders_1.CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute)}" ]; then echo "Retained Workspace Already Exists!"; else ${commands.replace(`\n`, ` && `)}; fi
echo "game ci cloud runner bootstrap"
node ${builderPath} -m remote-cli`;
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -130,7 +130,7 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
return `export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
echo "game ci cloud runner clone"
if [ -d "${CloudRunnerFolders.ToLinuxFolder(
if [ -e "${CloudRunnerFolders.ToLinuxFolder(
CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute,
)}" ]; then echo "Retained Workspace Already Exists!"; else ${commands.replace(`\n`, ` && `)}; fi
echo "game ci cloud runner bootstrap"