cleanup untagged images #16
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: cleanup untagged images | |
on: | |
schedule: | |
- cron: "5 4 4 */2 *" | |
# At 04:05 on day-of-month 4 in every 2nd month.” | |
workflow_dispatch: | |
env: | |
UPSTREAM_GITHUB_REPOSITORY: "mxpv/podsync" # Upstream repo | |
jobs: | |
check_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete all containers from repository without tags | |
uses: Chizkiyahu/delete-untagged-ghcr-action@1c77a06b7f80ad4beb82b85919003831d47277d1 # v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
repository_owner: ${{ github.repository_owner }} | |
repository: ${{ github.repository }} | |
untagged_only: true | |
owner_type: user |