Skip to content

Commit

Permalink
use updated version of the delete-untagged-action
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Sloan <jsloan117@gmail.com>
  • Loading branch information
jsloan117 committed Jul 14, 2024
1 parent e46c3cb commit cda2180
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
---
name: Delete Untagged Container Images
name: delete untagged

on:
schedule:
- cron: '0 0 1 * *' # yamllint disable-line rule:quoted-strings
- cron: '5 0 * * *' # yamllint disable-line rule:quoted-strings
workflow_dispatch:

permissions: {}

jobs:
cleanup:
runs-on: ubuntu-latest
permissions: {}
steps:
# https://github.com/marketplace/actions/delete-untagged
- name: Delete Untagged
uses: Chizkiyahu/delete-untagged-ghcr-action@v4
# uses: camargo/delete-untagged-action@v1
uses: jsloan117/delete-untagged-action@v1.0.1
with:
token: ${{ secrets.PKG_CLEANUP_KEY }}
owner_type: user
repository: ${{ github.repository }}
repository_owner: ${{ github.repository_owner }}
untagged_only: true
except_untagged_multiplatform: true

github-token: ${{ secrets.PKG_CLEANUP }}
personal-account: true

0 comments on commit cda2180

Please sign in to comment.