correct branch ref passed to target repo
							parent
							
								
									fd0c45788b
								
							
						
					
					
						commit
						3d538c6395
					
				|  | @ -3015,6 +3015,11 @@ class SetupStep { | ||||||
|             } |             } | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|  |     static getCloudRunnerBranch() { | ||||||
|  |         var _a; | ||||||
|  |         return ((_a = process.env.CLOUD_RUNNER_BRANCH) === null || _a === void 0 ? void 0 : _a.includes('/')) ? process.env.CLOUD_RUNNER_BRANCH.split('/').reverse()[0] | ||||||
|  |             : process.env.CLOUD_RUNNER_BRANCH; | ||||||
|  |     } | ||||||
|     static downloadRepository(image, environmentVariables, secrets) { |     static downloadRepository(image, environmentVariables, secrets) { | ||||||
|         return __awaiter(this, void 0, void 0, function* () { |         return __awaiter(this, void 0, void 0, function* () { | ||||||
|             try { |             try { | ||||||
|  | @ -3026,7 +3031,7 @@ class SetupStep { | ||||||
|         ${hooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '} |         ${hooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '} | ||||||
|         export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 |         export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 | ||||||
|         mkdir -p ${cloud_runner_state_1.CloudRunnerState.builderPathFull.replace(/\\/g, `/`)} |         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 -b ${SetupStep.getCloudRunnerBranch()} ${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, `/`)} |         ${__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, `/`)} |         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 |         node ${path_1.default.join(cloud_runner_state_1.CloudRunnerState.builderPathFull, 'dist', `index.js`).replace(/\\/g, `/`)} -m remote-cli | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -21,6 +21,12 @@ export class SetupStep implements StepInterface { | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |   private static getCloudRunnerBranch() { | ||||||
|  |     return process.env.CLOUD_RUNNER_BRANCH?.includes('/') | ||||||
|  |       ? process.env.CLOUD_RUNNER_BRANCH.split('/').reverse()[0] | ||||||
|  |       : process.env.CLOUD_RUNNER_BRANCH; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|   private static async downloadRepository( |   private static async downloadRepository( | ||||||
|     image: string, |     image: string, | ||||||
|     environmentVariables: CloudRunnerEnvironmentVariable[], |     environmentVariables: CloudRunnerEnvironmentVariable[], | ||||||
|  | @ -38,7 +44,7 @@ export class SetupStep implements StepInterface { | ||||||
|         ${hooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '} |         ${hooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '} | ||||||
|         export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 |         export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 | ||||||
|         mkdir -p ${CloudRunnerState.builderPathFull.replace(/\\/g, `/`)} |         mkdir -p ${CloudRunnerState.builderPathFull.replace(/\\/g, `/`)} | ||||||
|         git clone -q -b ${process.env.CLOUD_RUNNER_BRANCH} ${ |         git clone -q -b ${SetupStep.getCloudRunnerBranch()} ${ | ||||||
|           CloudRunnerState.unityBuilderRepoUrl |           CloudRunnerState.unityBuilderRepoUrl | ||||||
|         } "${CloudRunnerState.builderPathFull.replace(/\\/g, `/`)}" |         } "${CloudRunnerState.builderPathFull.replace(/\\/g, `/`)}" | ||||||
|         ${Input.cloudRunnerTests ? '' : '#'} tree ${CloudRunnerState.builderPathFull.replace(/\\/g, `/`)} |         ${Input.cloudRunnerTests ? '' : '#'} tree ${CloudRunnerState.builderPathFull.replace(/\\/g, `/`)} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue