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:
20586
build/index.js
20586
build/index.js
File diff suppressed because one or more lines are too long
20586
cleanup/index.js
20586
cleanup/index.js
File diff suppressed because one or more lines are too long
20586
converge/index.js
20586
converge/index.js
File diff suppressed because one or more lines are too long
20586
dismiss/index.js
20586
dismiss/index.js
File diff suppressed because one or more lines are too long
20592
run/index.js
20592
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
|
const tmpFilePath = tmpFile.name
|
||||||
await this.Exec(['ci-env', 'github', '--as-env-file', '-o', tmpFilePath])
|
await this.Exec(['ci-env', 'github', '--as-env-file', '-o', tmpFilePath])
|
||||||
const res = dotenv.config({path: 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)
|
console.log(res.parsed)
|
||||||
tmpFile.removeCallback()
|
tmpFile.removeCallback()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user