From 4bfde21b1b94221e842e602372f6d81cbc5966b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 6 Oct 2020 15:48:03 +0200 Subject: [PATCH] Fix moving all "Pending release" project cards to the "Done" column Previously only the first 30 project cards were moved. --- .github/workflows/releases.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index bd1a7643b..5b3bfb609 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -50,10 +50,11 @@ jobs: run: | api() { gh api -H 'accept: application/vnd.github.inertia-preview+json' "$@"; } api-write() { [[ $GITHUB_REF == *-* ]] && echo "skipping: api $*" || api "$@"; } - cards=$(api projects/columns/$PENDING_COLUMN/cards | jq ".[].id") + cards=$(api --paginate projects/columns/$PENDING_COLUMN/cards | jq ".[].id") for card in $cards; do - api-write projects/columns/cards/$card/moves -f position=top -F column_id=$DONE_COLUMN + api-write --silent projects/columns/cards/$card/moves -f position=top -F column_id=$DONE_COLUMN done + echo "moved ${#cards[@]} cards to the Done column" - name: Install packaging dependencies run: sudo apt-get install -y createrepo rpm reprepro