From 7b1edaa51f164d205941c99805cdd042eeefbc41 Mon Sep 17 00:00:00 2001 From: tinkle-community Date: Mon, 19 Jan 2026 19:04:33 +0800 Subject: [PATCH] docs: add auto-update sponsors workflow --- .github/workflows/sponsors.yml | 30 ++++++++++++++++++++++++++++++ README.md | 3 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/sponsors.yml diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml new file mode 100644 index 00000000..ddd87c13 --- /dev/null +++ b/.github/workflows/sponsors.yml @@ -0,0 +1,30 @@ +name: Update Sponsors + +on: + schedule: + # Run daily at 00:00 UTC + - cron: '0 0 * * *' + workflow_dispatch: # Allow manual trigger + +jobs: + sponsors: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Update Sponsors + uses: JamesIves/github-sponsors-readme-action@v1 + with: + token: ${{ secrets.SPONSORS_TOKEN }} + file: 'README.md' + organization: true + active-only: true + + - name: Commit and Push + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add README.md + git diff --staged --quiet || git commit -m "docs: update sponsors" + git push diff --git a/README.md b/README.md index bfad9dbf..0b9764f4 100644 --- a/README.md +++ b/README.md @@ -492,7 +492,8 @@ All contributions are tracked on GitHub. When NOFX generates revenue, contributo Thanks to all our sponsors! -cat9999aaa + + [Become a sponsor](https://github.com/sponsors/NoFxAiOS)