mirror of
https://github.com/werf/actions.git
synced 2026-02-05 10:56:23 +03:00
feat: export ci-env variables to the next steps
Signed-off-by: Alexey Igrychev <alexey.igrychev@flant.com>
This commit is contained in:
20588
build/index.js
20588
build/index.js
File diff suppressed because one or more lines are too long
20588
cleanup/index.js
20588
cleanup/index.js
File diff suppressed because one or more lines are too long
20588
converge/index.js
20588
converge/index.js
File diff suppressed because one or more lines are too long
20588
dismiss/index.js
20588
dismiss/index.js
File diff suppressed because one or more lines are too long
20594
run/index.js
20594
run/index.js
File diff suppressed because one or more lines are too long
@@ -83,6 +83,11 @@ export class Manager {
|
||||
const tmpFilePath = tmpFile.name
|
||||
await this.Exec(['ci-env', 'github', '--as-env-file', '-o', tmpFilePath])
|
||||
const res = dotenv.config({path: tmpFilePath})
|
||||
if (res.parsed) {
|
||||
for (const [key, value] of Object.entries(res.parsed)) {
|
||||
core.exportVariable(key, value)
|
||||
}
|
||||
}
|
||||
console.log(res.parsed)
|
||||
tmpFile.removeCallback()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user