From 194d996f2222d7ac32b0ccc78a694171329aac07 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sun, 28 Jan 2024 21:30:57 +1100 Subject: [PATCH] Sponsorship auto-generate v0.1.36 --- .github/workflows/update_sponsors.yml | 2 +- update_sponsors.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_sponsors.yml b/.github/workflows/update_sponsors.yml index 378608ee..7b8f645e 100755 --- a/.github/workflows/update_sponsors.yml +++ b/.github/workflows/update_sponsors.yml @@ -2,7 +2,7 @@ name: Update Sponsors on: schedule: - - cron: '15 10 * * *' # Set your preferred schedule (UTC) + - cron: '33 10 * * *' # Set your preferred schedule (UTC) jobs: update-readme: diff --git a/update_sponsors.py b/update_sponsors.py index 0194b210..e1affb32 100755 --- a/update_sponsors.py +++ b/update_sponsors.py @@ -3,6 +3,9 @@ import requests import base64 def fetch_sponsors(): + + global headers + graphql_url = "https://api.github.com/graphql" headers = { "Authorization": f"Bearer {os.environ.get('GH_TOKEN')}", @@ -89,6 +92,7 @@ def generate_sponsors_table(current_sponsors, past_sponsors): def update_readme(sponsors_table): + global headers repo_owner = "jokob-sk" repo_name = "Pi.Alert" readme_path = "README.md"