mirror of
https://github.com/werf/actions.git
synced 2026-03-25 08:53:07 +03:00
fix(deploy): respect WERF_ENV
Signed-off-by: Polina Sizintseva <polina.sizintseva@flant.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user