Skip to content

Update container image cleanup GitHub actions #2

Update container image cleanup GitHub actions

Update container image cleanup GitHub actions #2

---
name: Delete closed PR container image tag
"on":
pull_request:
types:
- closed
jobs:
cleanup-pr-tag:
uses: ubuntu-latest

Check failure on line 11 in .github/workflows/gitlab-container-image-cleanup-pr-tag.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gitlab-container-image-cleanup-pr-tag.yml

Invalid workflow file

invalid value workflow reference: no version specified
steps:
- name: Set image version for PR to branch name
run: echo "VERSION=${GITHUB_HEAD_REF//\//-}" >> ${GITHUB_ENV}
- name: Delete PR container image tag
uses: dataaxiom/ghcr-cleanup-action@v1
with:
tags: ${{ env.VERSION }}
package: ${{ github.event.repository.name }}/gitlab
token: ${{ secrets.GITHUB_TOKEN }}