mirror of
https://github.com/actions/checkout.git
synced 2025-04-04 07:20:07 +02:00
Default the LFS server to PEW internal cache
This commit is contained in:
parent
dbd025a70e
commit
b6753d2e3e
2 changed files with 9 additions and 0 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -18465,6 +18465,10 @@ function getInputs() {
|
||||||
result.lfsurl = (core.getInput('lfs-url') || '');
|
result.lfsurl = (core.getInput('lfs-url') || '');
|
||||||
result.lfsCredProvider = (core.getInput('lfs-url-cred-provider') || '');
|
result.lfsCredProvider = (core.getInput('lfs-url-cred-provider') || '');
|
||||||
core.debug(`lfs = ${result.lfs}`);
|
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
|
// Submodules
|
||||||
result.submodules = false;
|
result.submodules = false;
|
||||||
result.nestedSubmodules = false;
|
result.nestedSubmodules = false;
|
||||||
|
|
|
@ -97,6 +97,11 @@ export async function getInputs(): Promise<IGitSourceSettings> {
|
||||||
result.lfsCredProvider = (core.getInput('lfs-url-cred-provider') || '')
|
result.lfsCredProvider = (core.getInput('lfs-url-cred-provider') || '')
|
||||||
core.debug(`lfs = ${result.lfs}`)
|
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
|
// Submodules
|
||||||
result.submodules = false
|
result.submodules = false
|
||||||
result.nestedSubmodules = false
|
result.nestedSubmodules = false
|
||||||
|
|
Loading…
Add table
Reference in a new issue