mirror of
https://github.com/werf/actions.git
synced 2026-02-15 07:46:27 +03:00
Compare commits
1 Commits
v2
...
fix/deploy
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c6f60b137 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -96,4 +96,7 @@ Thumbs.db
|
||||
|
||||
# Ignore built ts files
|
||||
__tests__/runner/*
|
||||
lib/**/*
|
||||
lib/**/*
|
||||
|
||||
# Intellij
|
||||
/.idea
|
||||
@@ -12,7 +12,7 @@ inputs:
|
||||
version:
|
||||
description: 'The certain version'
|
||||
required: false
|
||||
env: # TODO: Remove this deprecated werf option, which is not required anymore (use WERF_ENV variable instead)
|
||||
env: # DEPRECATED: Use WERF_ENV environment variable instead (e.g., env: { WERF_ENV: value })
|
||||
description: 'Specific deployment environment'
|
||||
required: false
|
||||
github-token:
|
||||
|
||||
1456
converge/index.js
1456
converge/index.js
File diff suppressed because one or more lines are too long
@@ -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