Skip to content

Commit

Permalink
Use pagination to retrieve checksums (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger authored Feb 17, 2024
1 parent 30a4fdb commit 43d2c88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/update-checksums/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/update-checksums/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/update-checksums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ async function run(): Promise<void> {

const octokit = github.getOctokit(github_token)

const response = await octokit.rest.repos.listReleases({
const response = await octokit.paginate(octokit.rest.repos.listReleases, {
owner: OWNER,
repo: REPO
})
const downloadUrls: string[] = response.data.flatMap(release =>
const downloadUrls: string[] = response.flatMap(release =>
release.assets
.filter(asset => asset.name.endsWith('.sha256'))
.map(asset => asset.browser_download_url)
Expand Down

0 comments on commit 43d2c88

Please sign in to comment.