mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Sponsorship auto-generate v0.1 + docs
This commit is contained in:
18
.github/workflows/update_sponsors.yml
vendored
Normal file
18
.github/workflows/update_sponsors.yml
vendored
Normal 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
|
||||
31
.github/workflows/update_sponsors_table.yml
vendored
Normal file
31
.github/workflows/update_sponsors_table.yml
vendored
Normal 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 }}
|
||||
Reference in New Issue
Block a user