|
|
|
@ -125,9 +125,11 @@ export function sanitizeInputs(inputs: Inputs) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export async function getArgs(inputs: Inputs, toolkit: Toolkit): Promise<Array<string>> {
|
|
|
|
export async function getArgs(inputs: Inputs, toolkit: Toolkit): Promise<Array<string>> {
|
|
|
|
|
|
|
|
core.info(`Inputs.context: ${inputs.context}`);
|
|
|
|
const context = handlebars.compile(inputs.context)({
|
|
|
|
const context = handlebars.compile(inputs.context)({
|
|
|
|
defaultContext: Context.gitContext()
|
|
|
|
defaultContext: Context.gitContext()
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
core.info(`Final context: ${context}`);
|
|
|
|
// prettier-ignore
|
|
|
|
// prettier-ignore
|
|
|
|
return [
|
|
|
|
return [
|
|
|
|
...await getBuildArgs(inputs, context, toolkit),
|
|
|
|
...await getBuildArgs(inputs, context, toolkit),
|
|
|
|
|