cloud runner branch separated from target branch properly

pull/332/head
Frostebite 2022-02-01 20:58:18 +00:00
parent 2776986792
commit 2ce7b6705e
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -2945,7 +2945,7 @@ class BuildStep {
${hooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '}
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
mkdir -p ${cloud_runner_state_1.CloudRunnerState.builderPathFull.replace(/\\/g, `/`)}
git clone -q -b ${process.env.CLOUD_RUNNER_BRANCH} ${cloud_runner_state_1.CloudRunnerState.unityBuilderRepoUrl} "${cloud_runner_state_1.CloudRunnerState.builderPathFull.replace(/\\/g, `/`)}"
git clone -q ${process.env.CLOUD_RUNNER_BRANCH ? `-b ${process.env.CLOUD_RUNNER_BRANCH}` : ''} ${cloud_runner_state_1.CloudRunnerState.unityBuilderRepoUrl} "${cloud_runner_state_1.CloudRunnerState.builderPathFull.replace(/\\/g, `/`)}"
${__1.Input.cloudRunnerTests ? '' : '#'} tree ${cloud_runner_state_1.CloudRunnerState.builderPathFull.replace(/\\/g, `/`)}
chmod +x ${path_1.default.join(cloud_runner_state_1.CloudRunnerState.builderPathFull, 'dist', `index.js`).replace(/\\/g, `/`)}
node ${path_1.default.join(cloud_runner_state_1.CloudRunnerState.builderPathFull, 'dist', `index.js`).replace(/\\/g, `/`)} -m remote-cli

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,7 @@ export class BuildStep implements StepInterface {
${hooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '}
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
mkdir -p ${CloudRunnerState.builderPathFull.replace(/\\/g, `/`)}
git clone -q -b ${process.env.CLOUD_RUNNER_BRANCH} ${
git clone -q ${process.env.CLOUD_RUNNER_BRANCH ? `-b ${process.env.CLOUD_RUNNER_BRANCH}` : ''} ${
CloudRunnerState.unityBuilderRepoUrl
} "${CloudRunnerState.builderPathFull.replace(/\\/g, `/`)}"
${Input.cloudRunnerTests ? '' : '#'} tree ${CloudRunnerState.builderPathFull.replace(/\\/g, `/`)}