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 4
4
push :
5
5
branches :
6
6
- ' main'
7
-
7
+ schedule :
8
+ - cron : " 0 0 * * *" # Every day at 00:00 UTC
8
9
workflow_dispatch :
9
10
10
11
permissions :
33
34
uses : ./FetchGHSponsors
34
35
env :
35
36
GH_TOKEN : ${{ secrets.SPONSORS_TOKEN }}
36
- GH_LOGIN : your-org
37
+ GH_LOGIN : MonoGame
37
38
38
39
- name : Setup .NET Core SDK
39
40
uses : actions/setup-dotnet@v4
Original file line number Diff line number Diff line change 30
30
uses : ./FetchGHSponsors
31
31
env :
32
32
GH_TOKEN : ${{ secrets.SPONSORS_TOKEN }}
33
- GH_LOGIN : your-org
33
+ GH_LOGIN : MonoGame
34
34
35
35
- name : Setup .NET Core SDK
36
36
uses : actions/setup-dotnet@v4
Original file line number Diff line number Diff line change 18
18
19
19
RESP=$(curl -s https://api.github.com/graphql -H "Authorization: Bearer $GH_TOKEN" -H "Content-Type: application/json" -d "$BODY")
20
20
21
+ echo "$RESP"
22
+
21
23
CENTS=$(echo "$RESP" | jq '.data.organization.monthlyEstimatedSponsorsIncomeInCents // 0')
22
24
COUNT=$(echo "$RESP" | jq '.data.organization.sponsorshipsAsMaintainer.totalCount // 0')
23
25
jq -n --argjson sum "$CENTS" --argjson count "$COUNT" \
You can’t perform that action at this time.
0 commit comments