feat: export ci-env variables to the next steps

Signed-off-by: Alexey Igrychev <alexey.igrychev@flant.com>
This commit is contained in:
Alexey Igrychev
2023-01-11 11:16:55 +00:00
parent 28fbbd1431
commit bbed6a352f
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()
}