Skip to content

Commit 07d3f7b

Browse files
authored
Update command to fetch release branches with pagination
1 parent e6505fa commit 07d3f7b

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
@@ -155,7 +155,7 @@ jobs:
155155
if [[ "${RELEASE_BRANCH_PATTERN}" == "" ]]
156156
then
157157
# Get the last 2 release branch names, sorted by version, and build a regex like ^release-(1\.7|1\.8)$
158-
RELEASE_BRANCH_PATTERN="$(gh api repos/${GITHUB_REPOSITORY}/branches | \
158+
RELEASE_BRANCH_PATTERN="$(gh api repos/${GITHUB_REPOSITORY}/branches --paginate | \
159159
jq -r '[.[].name | select(test("^release-")) | sub("^release-";"")]
160160
| sort_by(split(".") | map(tonumber))
161161
| reverse

0 commit comments

Comments
 (0)