Skip to content

Commit 2ce44fc

Browse files
authored
ci.yml: Paginate the deployment lists so we can have all the results (#177)
1 parent a7f43bc commit 2ce44fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ jobs:
213213
# See https://docs.github.com/en/rest/deployments/deployments?apiVersion=2022-11-28#list-deployments
214214
next_deployment_number=$(gh api \
215215
-H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
216+
--paginate \
216217
/repos/${{ github.repository }}/deployments \
217218
--jq '[.[] | select(.ref == "${{ github.head_ref }}")] | length + 1'
218219
)

0 commit comments

Comments
 (0)