Skip to content

Commit

Permalink
Map json result to string
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo committed Dec 4, 2023
1 parent 8858d34 commit 56f800d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/post-checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ runs:
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
})
const files = await github.paginate(opts)
const files = await github.paginate(opts, (response) =>
response.data.map((file) => file.filename))
for (const file of files) {
console.log(file)
if (!file.endsWith('.md')) {
Expand Down

0 comments on commit 56f800d

Please sign in to comment.