From b78f798c9f58519fc23a2c73d7f9117694f4c08d Mon Sep 17 00:00:00 2001 From: BtbN Date: Sat, 18 Mar 2023 14:19:24 +0100 Subject: [PATCH] Add cleanup workflow --- .github/workflows/clean.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/clean.yml diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml new file mode 100644 index 0000000..1f53b93 --- /dev/null +++ b/.github/workflows/clean.yml @@ -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