diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 027dbdb2..86484f2c 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -57,25 +57,24 @@ jobs: run: | SPONSORS=$(gh api graphql -f query='{ user(login: "kaleidawave") { - sponsorshipsAsMaintainer(first: 100, activeOnly: false) { + sponsorshipsAsMaintainer(first: 100, activeOnly: false) { edges { - node { + node { sponsor { - name, login + name, login } - } + } + } } - } } - }' -q '.data.user.sponsorshipsAsMaintainer.edges | map(.node.sponsor.name // .node.sponsor.login) | join(",") | join(",")') - - echo "SPONSORS=$SPONSORS" >> $GITHUB_OUTPUT + }' -q '.data.user.sponsorshipsAsMaintainer.edges | map(.node.sponsor.name // .node.sponsor.login) | join(",")') CONTRIBUTORS=$( gh pr list --state merged --json author | jq 'map(.author.name // .author.login) | unique | join(",")' --raw-output ) - - echo "CONTRIBUTORS=$CONTRIBUTORS" >> $GITHUB_OUTPUT + + echo "SPONSORS=$SPONSORS" # >> $GITHUB_OUTPUT + echo "CONTRIBUTORS=$CONTRIBUTORS" shell: bash env: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0dceec40..2d71d68a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -60,26 +60,27 @@ jobs: - id: get-sponsors run: | - SPONSORS=$(gh api graphql -f query='{ - user(login: "kaleidawave") { - sponsorshipsAsMaintainer(first: 100, activeOnly: false) { - edges { - node { - sponsor { - name, login - } + SPONSORS=$( + gh api graphql -f query='{ + user(login: "kaleidawave") { + sponsorshipsAsMaintainer(first: 100, activeOnly: false) { + edges { + node { + sponsor { + name, login + } + } + } + } } - } - } - } - }' -q '.data.user.sponsorshipsAsMaintainer.edges | map(.node.sponsor.name // .node.sponsor.login) | join(",") | join(",")') - - echo "SPONSORS=$SPONSORS" >> $GITHUB_OUTPUT + }' -q '.data.user.sponsorshipsAsMaintainer.edges | map(.node.sponsor.name // .node.sponsor.login) | join(",")' + ) CONTRIBUTORS=$( - gh pr list --state merged --json author | jq 'map(.author.name // .author.login) | unique | join(",")' --raw-output + gh pr list --state merged --json author | jq 'map(.author.name // .author.login) | unique | join(",")' --raw-output ) + echo "SPONSORS=$SPONSORS" >> $GITHUB_OUTPUT echo "CONTRIBUTORS=$CONTRIBUTORS" >> $GITHUB_OUTPUT shell: bash