Skip to content

cleanup

cleanup #5

Workflow file for this run

name: 'cleanup'
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
jobs:
clean_workflow_runs:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: clean workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 30
keep_minimum_runs: 30
remove_package_versions:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: purge untagged container images
uses: dylanratcliffe/delete-untagged-containers@main
with:
package_name: 'docker-minecraft-papermc-server'
token: ${{ secrets.GITHUB_TOKEN }}