Clean untagged ghcr images #181
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clean untagged ghcr images | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '45 03 * * *' | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete all containers from repository without tags | |
uses: Chizkiyahu/delete-untagged-ghcr-action@v4 | |
with: | |
token: ${{ secrets.WORKFLOW_GITHUB }} | |
repository_owner: ${{ github.repository_owner }} | |
repository: ${{ github.repository }} | |
untagged_only: true | |
owner_type: user # or org |