Skip to content

Commit

Permalink
more tries at using paginte correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
craig-day committed Mar 23, 2021
1 parent 10cb4a1 commit 216f403
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions action.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ function initialTag(tag) {

async function existingTags() {
const result = octokit
.paginate(octokit.git.listMatchingRefs, {
...requestOpts,
ref: 'tags',
})
.paginate(
octokit.git.listMatchingRefs,
{ ...requestOpts, ref: 'tags' },
({ data: refs }) => refs
)
.then((refs) => {
console.log(refs)
refs.reverse()
Expand Down

0 comments on commit 216f403

Please sign in to comment.