remove head and heads from branch prefix
parent
912cad6b2a
commit
86e4c7c856
|
|
@ -2833,7 +2833,7 @@ class CloudRunnerBuildCommandProcessor {
|
||||||
${commands}
|
${commands}
|
||||||
${hooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}
|
${hooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}
|
||||||
echo "end of cloud runner job"
|
echo "end of cloud runner job"
|
||||||
echo"---${buildParameters.logId}"`;
|
echo "---${buildParameters.logId}"`;
|
||||||
}
|
}
|
||||||
static getHooks(customJobHooks) {
|
static getHooks(customJobHooks) {
|
||||||
const experimentHooks = customJobHooks;
|
const experimentHooks = customJobHooks;
|
||||||
|
|
@ -4216,7 +4216,7 @@ class Input {
|
||||||
}
|
}
|
||||||
static get branch() {
|
static get branch() {
|
||||||
if (Input.getInput(`GITHUB_REF`)) {
|
if (Input.getInput(`GITHUB_REF`)) {
|
||||||
return Input.getInput(`GITHUB_REF`).replace('refs/', '').replace(`head/`, '');
|
return Input.getInput(`GITHUB_REF`).replace('refs/', '').replace(`head/`, '').replace(`heads/`, '');
|
||||||
}
|
}
|
||||||
else if (Input.getInput('branch')) {
|
else if (Input.getInput('branch')) {
|
||||||
return Input.getInput('branch');
|
return Input.getInput('branch');
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -219,4 +219,3 @@ Metadata:
|
||||||
target:
|
target:
|
||||||
id: aece53ae-b82d-4267-bc16-ed964b05db27
|
id: aece53ae-b82d-4267-bc16-ed964b05db27
|
||||||
z: 13
|
z: 13
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ export class CloudRunnerBuildCommandProcessor {
|
||||||
${commands}
|
${commands}
|
||||||
${hooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}
|
${hooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}
|
||||||
echo "end of cloud runner job"
|
echo "end of cloud runner job"
|
||||||
echo"---${buildParameters.logId}"`;
|
echo "---${buildParameters.logId}"`;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static getHooks(customJobHooks): Hook[] {
|
public static getHooks(customJobHooks): Hook[] {
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ class Input {
|
||||||
}
|
}
|
||||||
static get branch() {
|
static get branch() {
|
||||||
if (Input.getInput(`GITHUB_REF`)) {
|
if (Input.getInput(`GITHUB_REF`)) {
|
||||||
return Input.getInput(`GITHUB_REF`).replace('refs/', '').replace(`head/`, '');
|
return Input.getInput(`GITHUB_REF`).replace('refs/', '').replace(`head/`, '').replace(`heads/`, '');
|
||||||
} else if (Input.getInput('branch')) {
|
} else if (Input.getInput('branch')) {
|
||||||
return Input.getInput('branch');
|
return Input.getInput('branch');
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue