Add cleanup workflow

This commit is contained in:
BtbN 2023-03-18 14:19:24 +01:00
parent 3aaec67422
commit b78f798c9f

20
.github/workflows/clean.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Cleanup
on:
workflow_dispatch: ~
schedule:
- cron: '0 20 * * *'
jobs:
cleanup:
name: Cleanup
runs-on: ubuntu-latest
steps:
- name: Cleanup
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
with:
token: ${{ github.token }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
owner_type: user
untagged_only: true