diff --git a/.github/workflows/update-models.yml b/.github/workflows/update-models.yml new file mode 100644 index 0000000..17c3641 --- /dev/null +++ b/.github/workflows/update-models.yml @@ -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 \ No newline at end of file