mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
api/env: unquote variables if needed
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
This commit is contained in:
parent
ba2d266de7
commit
c392864c82
@ -120,8 +120,12 @@ const reloadEnvs = async (contents) => {
|
||||
continue;
|
||||
}
|
||||
|
||||
const [ key, value ] = line.split(/=(.+)?/);
|
||||
let [ key, value ] = line.split(/=(.+)?/);
|
||||
if (key) {
|
||||
if (value.match(/^['"]/) && value.match(/['"]$/)) {
|
||||
value = JSON.parse(value);
|
||||
}
|
||||
|
||||
newEnvs[key] = value || '';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user