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:
Alexey Igrychev
2023-01-20 11:47:18 +00:00
committed by GitHub
6 changed files with 56028 additions and 46923 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

20594
run/index.js

File diff suppressed because one or more lines are too long

View File

@@ -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()
}