update cleanup to assume repo name
This commit is contained in:
parent
68b5019a45
commit
c0c001c68c
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.
|
# 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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -7,7 +7,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cleanup:
|
cleanup:
|
||||||
name: Delete QA image tag from GHCR
|
name: Delete QA GHCR image tag
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: >-
|
if: >-
|
||||||
${{ (github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'PR: Ready for QA')) ||
|
${{ (github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'PR: Ready for QA')) ||
|
||||||
@ -17,8 +17,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Delete PR tag from GHCR
|
- name: Delete PR tag from GHCR
|
||||||
uses: actions/delete-package-versions@v5
|
uses: actions/delete-package-versions@v5
|
||||||
|
continue-on-error: true # Package may not exist if build never ran
|
||||||
with:
|
with:
|
||||||
package-name: anythingllm
|
owner: ${{ github.repository_owner }}
|
||||||
|
package-name: ${{ github.repository }}
|
||||||
package-type: container
|
package-type: container
|
||||||
min-versions-to-keep: 0
|
min-versions-to-keep: 0
|
||||||
ignore-versions: '^(?!pr-${{ github.event.pull_request.number }}$).*$'
|
ignore-versions: '^(?!pr-${{ github.event.pull_request.number }}$).*$'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user