Skip to content

Commit 01fe78d

Browse files
authored
Update API call to fetch branches with pagination
1 parent d8ced8b commit 01fe78d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/update-plugins-repo-refs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
101101
set -o pipefail
102102
npm install semver -g
103-
overlayRepoBranchesString=$(gh api repos/${INPUT_OVERLAY_REPO}/branches | jq -r --arg INPUT_RELEASE_BRANCH_PATTERN "${INPUT_RELEASE_BRANCH_PATTERN}" --arg INPUT_SINGLE_BRANCH "${INPUT_SINGLE_BRANCH}" '.[].name | select(. == $INPUT_SINGLE_BRANCH or test($INPUT_RELEASE_BRANCH_PATTERN))')
103+
overlayRepoBranchesString=$(gh api repos/${INPUT_OVERLAY_REPO}/branches?per_page=200 | jq -r --arg INPUT_RELEASE_BRANCH_PATTERN "${INPUT_RELEASE_BRANCH_PATTERN}" --arg INPUT_SINGLE_BRANCH "${INPUT_SINGLE_BRANCH}" '.[].name | select(. == $INPUT_SINGLE_BRANCH or test($INPUT_RELEASE_BRANCH_PATTERN))')
104104
if [ $? -ne 0 ]
105105
then
106106
message "Failed fetching branches"

0 commit comments

Comments
 (0)