Update container image cleanup GitHub actions #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: Delete closed PR container image tag | ||
"on": | ||
pull_request: | ||
types: | ||
- closed | ||
jobs: | ||
cleanup-pr-tag: | ||
uses: ubuntu-latest | ||
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 }} |