async function bundle()

in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts [127:133]


async function bundle() {
  // indexed from 0 because RETRIES is the number of retries AFTER the initial try
  const bundleFilename = path.basename(WORKSPACE_DIRECTORY);
  await exec.exec("colcon", ["bundle", "--build-base", "build", "--install-base", "install", "--bundle-base", "bundle"], getWorkingDirExecOptions());
  await exec.exec("mv", ["bundle/output.tar", `../${bundleFilename}.tar`], getWorkingDirExecOptions());
  await exec.exec("rm", ["-rf", "bundle"], getWorkingDirExecOptions());  // github actions have been failing with no disk space
}