diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index f241dc1d9..6cfa339c6 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -26,6 +26,22 @@ jobs: args: release --release-notes=CHANGELOG.md env: GITHUB_TOKEN: ${{secrets.UPLOAD_GITHUB_TOKEN}} + cards: + needs: goreleaser + runs-on: ubuntu-latest + if: ${!contains(github.ref, "-")} + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + HUB: 'bin/hub api -HACCEPT:application/vnd.github.inertia-preview+json ' + PENDING_COLUMN: 8189733 + DONE_COLUMN: 7110130 + steps: + - name: move cards + shell: bash + run: | + curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1 + cards=$($HUB projects/columns/$PENDING_COLUMN/cards | jq "map(.id)|.[]") + for card in $cards; do $HUB projects/columns/cards/$card/moves --field position=top --field column_id=$DONE_COLUMN; done msi: needs: goreleaser runs-on: windows-latest