Skip to content

cleanup old builds #255

cleanup old builds

cleanup old builds #255

Workflow file for this run

name: "cleanup old builds"
on:
schedule:
- cron: '14 1 * * *'
workflow_dispatch:
env:
PYTHON_VERSION: "3.12"
jobs:
cleanup:
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- name: "checkout"
uses: "actions/checkout@v4"
- name: "setup python ${{ env.PYTHON_VERSION }}"
uses: "actions/setup-python@v5"
with:
python-version: "${{ env.PYTHON_VERSION }}"
cache: "pip"
cache-dependency-path: "_scripts/requirements.txt"
- name: "install dependencies"
run: "pip install -r _scripts/requirements.txt"
- name: "cleanup old PRs"
run: |
git config user.name "vineflower-bot"
git config user.email "[email protected]"
python _scripts/cleanup.py .
git commit -a -m 'cleanup outdated previews' || true
git push