run aws pipeline on new branch

pull/332/head
Frostebite 2022-02-01 20:27:44 +00:00
parent 8c7b65187a
commit 3be5a110fb
4 changed files with 11 additions and 10 deletions

View File

@ -1,7 +1,7 @@
name: Cloud Runner - AWS Tests
on:
push: { branches: [main, aws, cloud-runner/unified-build-and-setup] }
push: { branches: [main, aws, remote-builder/unified-providers] }
env:
GKE_ZONE: 'us-central1'
@ -15,7 +15,7 @@ env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-west-2
AWS_BASE_STACK_NAME: game-ci-github-pipelines
CLOUD_RUNNER_BRANCH: cloud-runner/unified-build-and-setup
CLOUD_RUNNER_BRANCH: remote-builder/unified-providers
CLOUD_RUNNER_TESTS: true
DEBUG: true
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}

8
dist/index.js vendored
View File

@ -3777,15 +3777,15 @@ class Input {
}
static branch() {
return __awaiter(this, void 0, void 0, function* () {
if (yield git_repo_1.GitRepoReader.GetBranch()) {
if (Input.getInput('branch')) {
return Input.getInput('branch');
}
else 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`).replace('refs/', '').replace(`head/`, '');
}
else if (Input.getInput('branch')) {
return Input.getInput('branch');
}
else {
return 'main';
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -44,13 +44,14 @@ class Input {
'game-ci/unity-builder'
);
}
static async branch() {
if (await GitRepoReader.GetBranch()) {
if (Input.getInput('branch')) {
return Input.getInput('branch');
} else if (await GitRepoReader.GetBranch()) {
return await GitRepoReader.GetBranch();
} else if (Input.getInput(`GITHUB_REF`)) {
return Input.getInput(`GITHUB_REF`).replace('refs/', '').replace(`head/`, '');
} else if (Input.getInput('branch')) {
return Input.getInput('branch');
} else {
return 'main';
}