ci: Add daily model auto-updater workflow [skip ci]
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
name: Daily Model Update
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 9 * * *' # Every morning at 09:00 UTC
|
||||
workflow_dispatch: # Allows you to click a button in GitHub to update immediately
|
||||
|
||||
jobs:
|
||||
update-models:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install dependencies
|
||||
run: pip install requests
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "GitHub Actions"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
- name: Run updater
|
||||
run: python pollinations_auto_updater.py
|
||||
Reference in New Issue
Block a user