fix(deploy): respect WERF_ENV

Signed-off-by: Polina Sizintseva <polina.sizintseva@flant.com>
This commit is contained in:
Polina Sizintseva
2026-02-12 12:22:01 +03:00
parent 6ad28e741a
commit 2c6f60b137
4 changed files with 740 additions and 729 deletions

View File

@@ -3,7 +3,11 @@ import {PrepareEnvironAndRunWerfCommand} from './common'
async function run(): Promise<void> {
try {
process.env.WERF_ENV = core.getInput('env')
// with.env parameter has priority over WERF_ENV environment variable
const envInput = core.getInput('env')
if (envInput) {
process.env.WERF_ENV = envInput
}
await PrepareEnvironAndRunWerfCommand(['converge'])
} catch (error) {
core.setFailed(error.message)