File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - ' main'
7-
7+ schedule :
8+ - cron : " 0 0 * * *" # Every day at 00:00 UTC
89 workflow_dispatch :
910
1011permissions :
3334 uses : ./FetchGHSponsors
3435 env :
3536 GH_TOKEN : ${{ secrets.SPONSORS_TOKEN }}
36- GH_LOGIN : your-org
37+ GH_LOGIN : MonoGame
3738
3839 - name : Setup .NET Core SDK
3940 uses : actions/setup-dotnet@v4
Original file line number Diff line number Diff line change 3030 uses : ./FetchGHSponsors
3131 env :
3232 GH_TOKEN : ${{ secrets.SPONSORS_TOKEN }}
33- GH_LOGIN : your-org
33+ GH_LOGIN : MonoGame
3434
3535 - name : Setup .NET Core SDK
3636 uses : actions/setup-dotnet@v4
Original file line number Diff line number Diff line change 1818
1919 RESP=$(curl -s https://api.github.com/graphql -H "Authorization: Bearer $GH_TOKEN" -H "Content-Type: application/json" -d "$BODY")
2020
21+ echo "$RESP"
22+
2123 CENTS=$(echo "$RESP" | jq '.data.organization.monthlyEstimatedSponsorsIncomeInCents // 0')
2224 COUNT=$(echo "$RESP" | jq '.data.organization.sponsorshipsAsMaintainer.totalCount // 0')
2325 jq -n --argjson sum "$CENTS" --argjson count "$COUNT" \
You can’t perform that action at this time.
0 commit comments