Sponsorship auto-generate v0.1 + docs

This commit is contained in:
Jokob-sk
2024-01-28 11:08:32 +11:00
parent 5cfe0bf713
commit a7227ca715
5 changed files with 138 additions and 9 deletions

18
.github/workflows/update_sponsors.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Update Sponsors
on:
schedule:
- cron: '0 0 * * *' # Set your preferred schedule
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Update Sponsors
run: |
GH_TOKEN=${{ secrets.GITHUB_TOKEN }}
gh run workflow_dispatch -R $GITHUB_REPOSITORY -f update_sponsors_table.yml -t $GH_TOKEN

View File

@@ -0,0 +1,31 @@
name: Update Sponsors Table
on:
workflow_run:
workflows: ["Update Sponsors"]
types:
- completed
jobs:
update-table:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r update_sponsors_requirements.txt # If you have any Python dependencies
- name: Update Sponsors Table
run: |
python update_sponsors.py
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}