Skip to content

Commit 26c799e

Browse files
committed
use function not env var
1 parent 17e690e commit 26c799e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/releases.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ jobs:
3030
if: "!contains(github.ref, '-')"
3131
env:
3232
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
33-
HUB: 'bin/hub api -HACCEPT:application/vnd.github.inertia-preview+json '
3433
PENDING_COLUMN: 8189733
3534
DONE_COLUMN: 7110130
3635
shell: bash
3736
run: |
3837
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
39-
cards=$($HUB projects/columns/$PENDING_COLUMN/cards | jq "map(.id)|.[]")
40-
for card in $cards; do $HUB projects/columns/cards/$card/moves --field position=top --field column_id=$DONE_COLUMN; done
38+
api() { bin/hub api -H 'accept: application/vnd.github.inertia-preview+json' "$@"; }
39+
cards=$(api projects/columns/$PENDING_COLUMN/cards | jq ".[].id")
40+
for card in $cards; do api projects/columns/cards/$card/moves --field position=top --field column_id=$DONE_COLUMN; done
4141
msi:
4242
needs: goreleaser
4343
runs-on: windows-latest

0 commit comments

Comments
 (0)