Skip to content

Commit

Permalink
chore: publish dist
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 24, 2020
1 parent 2ea7593 commit a7fe1fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5998,7 +5998,9 @@ const core = __importStar(__webpack_require__(470));
*/
function getSecrets(patterns, env = process.env) {
const regexPatterns = patterns.map(s => new RegExp(s));
return Object.keys(env)
const keys = Object.keys(env);
core.debug(`Available env keys: ${JSON.stringify(keys)}`);
return keys
.filter((k) => {
return env[k] && regexPatterns.filter(r => r.test(k)).length;
})
Expand Down Expand Up @@ -7429,6 +7431,7 @@ function listAllMatchingRepos({ patterns, octokit, affiliation = "owner,collabor
affiliation,
per_page
});
core.debug(`Available repositories: ${JSON.stringify(repos.map(r => r.full_name))}`);
return filterReposByPatterns(repos, patterns);
});
}
Expand Down Expand Up @@ -7465,6 +7468,7 @@ function setSecretsForRepo(octokit, secrets, repo, dry_run) {
})).data;
for (const k of Object.keys(secrets)) {
const encrypted_value = utils_1.encrypt(secrets[k], publicKey.key);
core.debug(`Set \`${k} = ***\` on ${repo.full_name}`);
if (!dry_run) {
yield octokit.actions.createOrUpdateSecretForRepo({
owner,
Expand Down

0 comments on commit a7fe1fd

Please sign in to comment.