Skip to content

Commit

Permalink
[patch] Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
manquer committed Sep 20, 2024
1 parent acf2caa commit 2228685
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82125,10 +82125,15 @@ class KeyVaultClient {
async function setup(prefix) {
const items = (0,lodash.filter)(Object.keys(process.env), (i) => (0,lodash.startsWith)(i, `${prefix}_`) || (0,lodash.startsWith)(i, `KV_`));
await PromiseExtended.map(items, async (k) => {
const key = (0,lodash.get)(k.split(`${prefix}_`), '1') || (0,lodash.get)(k.split(`KV_`), '1');
const value = await kv.getSecret(prefix, key);
core.exportVariable(key, value);
core.setSecret(`${value}`);
try {
const key = (0,lodash.get)(k.split(`${prefix}_`), '1') || (0,lodash.get)(k.split(`KV_`), '1');
const value = await kv.getSecret(prefix, key);
core.exportVariable(key, value);
core.setSecret(`${value}`);
}
catch (err) {
core.setFailed(`err: ${err}`);
}
});
}

Expand Down

0 comments on commit 2228685

Please sign in to comment.