mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
update cleanup to assume repo name
This commit is contained in:
8
.github/workflows/cleanup-qa-tag.yaml
vendored
8
.github/workflows/cleanup-qa-tag.yaml
vendored
@@ -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 }}$).*$'
|
||||
|
||||
Reference in New Issue
Block a user