pull/729/head
Frostebite 2025-09-05 01:19:16 +01:00
parent afdc987ae3
commit 9b205ac903
1 changed files with 8 additions and 1 deletions

View File

@ -223,6 +223,7 @@ export class RemoteClient {
await CloudRunnerSystem.Run(`git config --global filter.lfs.process "git-lfs filter-process"`); await CloudRunnerSystem.Run(`git config --global filter.lfs.process "git-lfs filter-process"`);
if (CloudRunner.buildParameters.skipLfs) { if (CloudRunner.buildParameters.skipLfs) {
RemoteClientLogger.log(`Skipping LFS pull (skipLfs=true)`); RemoteClientLogger.log(`Skipping LFS pull (skipLfs=true)`);
return; return;
} }
@ -230,8 +231,12 @@ export class RemoteClient {
try { try {
await CloudRunnerSystem.Run(`git lfs pull`, true); await CloudRunnerSystem.Run(`git lfs pull`, true);
RemoteClientLogger.log(`Pulled LFS files without explicit token configuration`); RemoteClientLogger.log(`Pulled LFS files without explicit token configuration`);
return; return;
} catch {} } catch (_error) {
/* no-op: best-effort git lfs pull without tokens may fail */
void 0;
}
// Try with GIT_PRIVATE_TOKEN // Try with GIT_PRIVATE_TOKEN
try { try {
@ -246,6 +251,7 @@ export class RemoteClient {
); );
await CloudRunnerSystem.Run(`git lfs pull`, true); await CloudRunnerSystem.Run(`git lfs pull`, true);
RemoteClientLogger.log(`Successfully pulled LFS files with GIT_PRIVATE_TOKEN`); RemoteClientLogger.log(`Successfully pulled LFS files with GIT_PRIVATE_TOKEN`);
return; return;
} }
} catch (error: any) { } catch (error: any) {
@ -265,6 +271,7 @@ export class RemoteClient {
); );
await CloudRunnerSystem.Run(`git lfs pull`, true); await CloudRunnerSystem.Run(`git lfs pull`, true);
RemoteClientLogger.log(`Successfully pulled LFS files with GITHUB_TOKEN`); RemoteClientLogger.log(`Successfully pulled LFS files with GITHUB_TOKEN`);
return; return;
} }
} catch (error: any) { } catch (error: any) {