Skip to content

Commit

Permalink
Add pagination handling for find-asset action
Browse files Browse the repository at this point in the history
  • Loading branch information
brayanhenao committed May 25, 2023
1 parent 54abbcf commit 7b76ec8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actions/release/find-asset/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ function find_asset() {
pattern="${3}"
strict="${4}"

release_json=$(gh api "repos/${repo}/releases" \
release_json=$(gh api "repos/${repo}/releases?per_page=100" \
--method GET \
--paginate \
| jq -s '[.[]]' \
| jq 'add' \
| jq -r \
--arg pattern "${pattern}" \
--argjson depth "${depth}" \
Expand Down

0 comments on commit 7b76ec8

Please sign in to comment.