Skip to content

Commit d062628

Browse files
authored
Scheduled Update (#243)
* Fix login * Rebuild the website daily at 00:00 UTC. * Always echo the query response.
1 parent a5d8933 commit d062628

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/main.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
push:
55
branches:
66
- 'main'
7-
7+
schedule:
8+
- cron: "0 0 * * *" # Every day at 00:00 UTC
89
workflow_dispatch:
910

1011
permissions:
@@ -33,7 +34,7 @@ jobs:
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

.github/workflows/pullrequest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
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

FetchGHSponsors/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ runs:
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" \

0 commit comments

Comments
 (0)