From b6753d2e3eb0b682852f95cd8216f3bad0bbe09d Mon Sep 17 00:00:00 2001 From: Matthew Endsley Date: Fri, 2 Dec 2022 17:46:34 -0800 Subject: [PATCH] Default the LFS server to PEW internal cache --- dist/index.js | 4 ++++ src/input-helper.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/dist/index.js b/dist/index.js index f10ed44..2d940f1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -18465,6 +18465,10 @@ function getInputs() { result.lfsurl = (core.getInput('lfs-url') || ''); result.lfsCredProvider = (core.getInput('lfs-url-cred-provider') || ''); core.debug(`lfs = ${result.lfs}`); + // Default lfs cache server for PEW repositories + if (result.lfsurl == '' && result.repositoryOwner.toLowerCase() == 'playeveryware') { + result.lfsurl = `https://lfscache.office.playeveryware.com/${qualifiedRepository}`; + } // Submodules result.submodules = false; result.nestedSubmodules = false; diff --git a/src/input-helper.ts b/src/input-helper.ts index dd558e0..ef707c5 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -97,6 +97,11 @@ export async function getInputs(): Promise { result.lfsCredProvider = (core.getInput('lfs-url-cred-provider') || '') core.debug(`lfs = ${result.lfs}`) + // Default lfs cache server for PEW repositories + if (result.lfsurl == '' && result.repositoryOwner.toLowerCase() == 'playeveryware') { + result.lfsurl = `https://lfscache.office.playeveryware.com/${qualifiedRepository}` + } + // Submodules result.submodules = false result.nestedSubmodules = false