Skip to content

Commit

Permalink
fix: set secrets serially (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored May 4, 2020
1 parent 51d0a58 commit 7a403ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,9 @@ function run() {
FOUND_REPOS: repoNames,
FOUND_SECRETS: Object.keys(secrets)
}, null, 2));
yield Promise.all(repos.map((repo) => __awaiter(this, void 0, void 0, function* () { return github_1.setSecretsForRepo(octokit, secrets, repo, config.DRY_RUN); })));
for (const repo of repos) {
yield github_1.setSecretsForRepo(octokit, secrets, repo, config.DRY_RUN);
}
}
catch (error) {
/* istanbul ignore next */
Expand Down
8 changes: 3 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ export async function run(): Promise<void> {
)
);

await Promise.all(
repos.map(async repo =>
setSecretsForRepo(octokit, secrets, repo, config.DRY_RUN)
)
);
for (const repo of repos) {
await setSecretsForRepo(octokit, secrets, repo, config.DRY_RUN);
}
} catch (error) {
/* istanbul ignore next */
core.error(error);
Expand Down

0 comments on commit 7a403ec

Please sign in to comment.