X Tutup
Skip to content

Commit 4bfde21

Browse files
committed
Fix moving all "Pending release" project cards to the "Done" column
Previously only the first 30 project cards were moved.
1 parent 0d593e7 commit 4bfde21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/releases.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ jobs:
5050
run: |
5151
api() { gh api -H 'accept: application/vnd.github.inertia-preview+json' "$@"; }
5252
api-write() { [[ $GITHUB_REF == *-* ]] && echo "skipping: api $*" || api "$@"; }
53-
cards=$(api projects/columns/$PENDING_COLUMN/cards | jq ".[].id")
53+
cards=$(api --paginate projects/columns/$PENDING_COLUMN/cards | jq ".[].id")
5454
for card in $cards; do
55-
api-write projects/columns/cards/$card/moves -f position=top -F column_id=$DONE_COLUMN
55+
api-write --silent projects/columns/cards/$card/moves -f position=top -F column_id=$DONE_COLUMN
5656
done
57+
echo "moved ${#cards[@]} cards to the Done column"
5758
5859
- name: Install packaging dependencies
5960
run: sudo apt-get install -y createrepo rpm reprepro

0 commit comments

Comments
 (0)
X Tutup