Skip to content

Commit

Permalink
Update global-clean-untagged-ghcr-images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw authored Nov 14, 2024
1 parent 9c99739 commit 071c37f
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/global-clean-untagged-ghcr-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ on:
schedule:
- cron: '45 03 * * *'

jobs:
run:

jobs:
delete_versions:
runs-on: ubuntu-latest
steps:

- name: Delete all containers from repository without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v5
with:
token: ${{ secrets.WORKFLOW_GITHUB }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
untagged_only: true
owner_type: user # or org
steps:
- uses: actions/delete-package-versions@v5
with:
package-name: 'starsky'
token: ${{ secrets.WORKFLOW_GITHUB }}
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'

0 comments on commit 071c37f

Please sign in to comment.