Skip to content

Daily Prune

Daily Prune #235

Workflow file for this run

name: Daily Prune
on:
schedule:
- cron: '0 0 * * *' # Executes the script every day at 00:00 UTC
workflow_dispatch:
jobs:
build:
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.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install ruamel.yaml
- name: Run Python script
run: python scripts/clean_events.py
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "Update event files")
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}