Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Clean Up Untagged Images

on:
schedule:
- cron: 0 0 * * 0 # run at midnight every sunday
Copy link

Copilot AI Feb 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment incorrectly capitalizes 'sunday' - it should be 'Sunday' for proper grammar in documentation.

Suggested change
- cron: 0 0 * * 0 # run at midnight every sunday
- cron: 0 0 * * 0 # run at midnight every Sunday

Copilot uses AI. Check for mistakes.
workflow_dispatch:

jobs:
cleanup_untagged_images:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Delete untagged images
uses: actions/delete-package-versions@v5
with:
package-name: ${{ github.event.repository.name }}
Copy link

Copilot AI Feb 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package-name should use 'github.repository' instead of 'github.event.repository.name'. For GitHub Container Registry packages, the full package name includes both the owner and repository name in the format 'owner/repo'. Using only the repository name will cause the action to fail to find the package. This is consistent with how the release workflow references packages using 'github.repository'.

Suggested change
package-name: ${{ github.event.repository.name }}
package-name: ${{ github.repository }}

Copilot uses AI. Check for mistakes.
package-type: container
delete-only-untagged-versions: true
min-versions-to-keep: 0