Skip to content

Commit

Permalink
Fix workflow response parser
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Dec 17, 2022
1 parent 1f7820f commit 390833f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-sponsors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- master
workflow_dispatch:

jobs:
update-sponsors:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
}
}
`;
const response = await github.graphql(query);
const response = JSON.parse(await github.graphql(query));
let html = '';
for (const node of response.data.user.sponsorshipsAsMaintainer.nodes) {
html += '<a href="' + node.sponsor.url + '" title="' + node.sponsor.login + (node.sponsor.name ? (' (' + node.sponsor.name + ')') : '') + '" target=_blank><image src="' + node.sponsor.avatarUrl + '" alt="@' + node.sponsor.login + '" width="35" height="35" style="border-radius: 17px;" /></a>\n';
Expand Down

0 comments on commit 390833f

Please sign in to comment.