Skip to content

vacuum

vacuum #144

Workflow file for this run

name: vacuum
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
delete:
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Delete old releases
uses: Nats-ji/delete-old-releases@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
remove-tags: true
keep-old-minor-releases: true
semver-loose: true
- name: Delete old runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 3