diff --git a/dist/index.js b/dist/index.js index 8e4d58e..bc37a33 100644 --- a/dist/index.js +++ b/dist/index.js @@ -137,6 +137,7 @@ function getInputs() { cachePrefix: core.getInput("cache-prefix"), cacheSaveAlways: core.getBooleanInput("cache-save-always"), upgradeStack: core.getBooleanInput("upgrade-stack"), + stackYaml: getInputDefault("stack-yaml", null), }; } exports.getInputs = getInputs; @@ -195,6 +196,11 @@ async function run() { core.debug(`Change directory: ${inputs.workingDirectory}`); process.chdir(inputs.workingDirectory); } + if (inputs.stackYaml) { + core.warning("inputs.stack-yaml is deprecated. Set env.STACK_YAML or use inputs.stack-arguments instead."); + inputs.stackArguments.unshift(inputs.stackYaml); + inputs.stackArguments.unshift("--stack-yaml"); + } const stack = new stack_cli_1.StackCLI(inputs.stackArguments, core.isDebug()); const hashes = await core.group("Calculate hashes", async () => { const hashes = await (0, hash_project_1.hashProject)(stack.config);