Skip to content

Commit

Permalink
Fix issues in release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleidawave committed Aug 29, 2024
1 parent 5369041 commit 9c0a038
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
31 changes: 16 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c0a038

Please sign in to comment.