Skip to content

Cleanup Old Releases, Tags, and Workflow Runs #5

Cleanup Old Releases, Tags, and Workflow Runs

Cleanup Old Releases, Tags, and Workflow Runs #5

name: Cleanup Old Releases, Tags, and Workflow Runs
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history and tags so git for-each-ref works correctly
- name: Run Cleanup Script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 scripts/cleanup_old_assets.py