update cleanup to assume repo name

This commit is contained in:
Timothy Carambat
2026-02-10 09:21:19 -08:00
parent 68b5019a45
commit c0c001c68c

View File

@@ -1,5 +1,5 @@
# Cleans up the GHCR image tag when the PR is closed or the "PR: Ready for QA" label is removed.
name: Cleanup QA Docker Image
name: Cleanup QA GHCR Image
on:
pull_request:
@@ -7,7 +7,7 @@ on:
jobs:
cleanup:
name: Delete QA image tag from GHCR
name: Delete QA GHCR image tag
runs-on: ubuntu-latest
if: >-
${{ (github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'PR: Ready for QA')) ||
@@ -17,8 +17,10 @@ jobs:
steps:
- name: Delete PR tag from GHCR
uses: actions/delete-package-versions@v5
continue-on-error: true # Package may not exist if build never ran
with:
package-name: anythingllm
owner: ${{ github.repository_owner }}
package-name: ${{ github.repository }}
package-type: container
min-versions-to-keep: 0
ignore-versions: '^(?!pr-${{ github.event.pull_request.number }}$).*$'