mirror of
https://github.com/werf/actions.git
synced 2026-02-05 02:46:23 +03:00
Merge pull request #65 from werf/feat_export_ci_env_variables
feat: export ci-env variables to the next steps
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