name: Cleanup Untagged Images

on:
  workflow_dispatch:

jobs:
  delete-untagged-images:
    name: Delete Untagged Images
    runs-on: blacksmith-2vcpu-ubuntu-2404
    steps:
      - uses: bots-house/ghcr-delete-image-action@3827559c68cb4dcdf54d813ea9853be6d468d3a4 # v1.1.0
        with:
          owner: firecrawl
          name: firecrawl
          # NOTE: using Personal Access Token
          token: ${{secrets.GITHUB_TOKEN}}
          # Keep latest N untagged images
          untagged-keep-latest: 5