BUILDID replaced by buildGuid in cloudformation

pull/310/head
Frostebite 2021-12-30 01:33:13 +00:00
parent 9b0cb00508
commit 56ee75bc70
3 changed files with 5 additions and 10 deletions

7
dist/index.js vendored
View File

@ -3612,8 +3612,8 @@ class Input {
}
static branch() {
return __awaiter(this, void 0, void 0, function* () {
if (Input.getInput(`REMOTE_BUILDER_CACHE`)) {
return Input.getInput(`REMOTE_BUILDER_CACHE`);
if (yield git_repo_1.GitRepoReader.GetBranch()) {
return yield git_repo_1.GitRepoReader.GetBranch();
}
else if (Input.getInput(`GITHUB_REF`)) {
return Input.getInput(`GITHUB_REF`)
@ -3627,9 +3627,6 @@ class Input {
else if (Input.getInput('branch')) {
return Input.getInput('branch');
}
else if (yield git_repo_1.GitRepoReader.GetBranch()) {
return yield git_repo_1.GitRepoReader.GetBranch();
}
else {
return 'remote-builder/unified-providers';
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -45,8 +45,8 @@ class Input {
return Input.getInput('GITHUB_REPOSITORY') || GitRepoReader.GetRemote() || 'game-ci/unity-builder';
}
static async branch() {
if (Input.getInput(`REMOTE_BUILDER_CACHE`)) {
return Input.getInput(`REMOTE_BUILDER_CACHE`);
if (await GitRepoReader.GetBranch()) {
return await GitRepoReader.GetBranch();
} else if (Input.getInput(`GITHUB_REF`)) {
return Input.getInput(`GITHUB_REF`)
.split('/')
@ -57,8 +57,6 @@ class Input {
.join('');
} else if (Input.getInput('branch')) {
return Input.getInput('branch');
} else if (await GitRepoReader.GetBranch()) {
return await GitRepoReader.GetBranch();
} else {
return 'remote-builder/unified-providers';
}