()
| 112 | } |
| 113 | |
| 114 | async function main() { |
| 115 | const github = new Octokit({auth: await getAuthTokenFor(ANGULAR_ROBOT)}); |
| 116 | try { |
| 117 | const goldenFiles: Files = await getFilesForRepo(github, context.repo.repo); |
| 118 | |
| 119 | for (const repo of reposToSync) { |
| 120 | core.info(`~~~~~~Updating "${repo}" repo~~~~~~~`); |
| 121 | await updateRepoWithFiles(github, repo, goldenFiles); |
| 122 | } |
| 123 | } finally { |
| 124 | await revokeActiveInstallationToken(github); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | main().catch((err) => { |
| 129 | console.error(err); |
no test coverage detected