upon release move Pending Release project cards into Done column

This commit is contained in:
vilmibm 2020-03-02 16:04:47 -06:00
parent 704ce311ca
commit cc9f58afee

View file

@ -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