Skip to content

Commit 5a2b465

Browse files
committed
Fix links to images in markdown
1 parent 497a463 commit 5a2b465

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/sponsors.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ if (-not $env:GITHUB_REPOSITORY_OWNER) {
5555
throw "Environment variable 'GITHUB_REPOSITORY_OWNER' is required since it is the sponsorable account."
5656
}
5757

58-
$query = gh api graphql --paginate --jq '.data.organization.sponsorshipsAsMaintainer.nodes' -f owner=$env:GITHUB_REPOSITORY_OWNER -f query='
58+
$sponsorable = $env.GITHUB_REPOSITORY_OWNER
59+
60+
$query = gh api graphql --paginate --jq '.data.organization.sponsorshipsAsMaintainer.nodes' -f owner=$sponsorable -f query='
5961
query ($owner: String!, $endCursor: String) {
6062
organization(login: $owner) {
6163
sponsorshipsAsMaintainer(first: 100, after: $endCursor, orderBy: {field: CREATED_AT, direction: ASC}, includePrivate: false) {
@@ -110,7 +112,7 @@ $gold | %{ gh api graphql --jq '.data.organization' -f login=$_ -f query='query(
110112
$links = "";
111113

112114
foreach ($sponsor in $sponsors) {
113-
$links += "[![$($sponsor.sponsorEntity.name)](https://raw.githubusercontent.com/$($env.GITHUB_REPOSITORY_OWNER))/sponsors/main/.github/avatars/$($sponsor.sponsorEntity.login).png `"$($sponsor.sponsorEntity.name)`")](https://github.com/$($sponsor.sponsorEntity.login))`n";
115+
$links += "[![$($sponsor.sponsorEntity.name)](https://raw.githubusercontent.com/$sponsorable/sponsors/main/.github/avatars/$($sponsor.sponsorEntity.login).png `"$($sponsor.sponsorEntity.name)`")](https://github.com/$($sponsor.sponsorEntity.login))`n";
114116
}
115117

116118
$links | Out-File ./sponsors.md -Force -Encoding UTF8

0 commit comments

Comments
 (0)