From 64418d11fc51c6b97015ea09b960de5f90f27943 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sun, 28 Jan 2024 21:10:15 +1100 Subject: [PATCH] Sponsorship auto-generate v0.1.35 --- .github/workflows/docker_dev.yml | 2 +- .github/workflows/update_sponsors.yml | 2 +- update_sponsors.py | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker_dev.yml b/.github/workflows/docker_dev.yml index 0141598c..75bb3822 100755 --- a/.github/workflows/docker_dev.yml +++ b/.github/workflows/docker_dev.yml @@ -23,7 +23,7 @@ jobs: github.repository == 'jokob-sk/Pi.Alert' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.github/workflows/update_sponsors.yml b/.github/workflows/update_sponsors.yml index 4f99f50a..378608ee 100755 --- a/.github/workflows/update_sponsors.yml +++ b/.github/workflows/update_sponsors.yml @@ -2,7 +2,7 @@ name: Update Sponsors on: schedule: - - cron: '0 10 * * *' # Set your preferred schedule (UTC) + - cron: '15 10 * * *' # Set your preferred schedule (UTC) jobs: update-readme: diff --git a/update_sponsors.py b/update_sponsors.py index 28d9e68a..0194b210 100755 --- a/update_sponsors.py +++ b/update_sponsors.py @@ -92,7 +92,7 @@ def update_readme(sponsors_table): repo_owner = "jokob-sk" repo_name = "Pi.Alert" readme_path = "README.md" - + with open(readme_path, "r") as readme_file: readme_content = readme_file.read() @@ -125,8 +125,7 @@ def update_readme(sponsors_table): commit_message = "[đŸ¤–Automation] Update README with sponsors information" commit_data = { "message": commit_message, - "content": updated_content_base64, - "sha": readme_data["sha"], + "content": updated_content_base64, "branch": "main", # Update the branch name as needed }