chore(mr): prepare v2024.10.0 #1
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: PR Close Policy | |
on: | |
pull_request: | |
types: [closed] | |
env: | |
# Use docker.io for Docker Hub if empty | |
REGISTRY: ghcr.io | |
# github.repository as <account>/<repo> | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
clean: | |
name: Clean up the registry | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
# Delete the "pr-#" tagged Docker images when a pull request is closed. | |
# https://github.com/dataaxiom/ghcr-cleanup-action | |
- name: Delete pr-tagged Docker images on registry ${{ env.REGISTRY }} | |
uses: dataaxiom/ghcr-cleanup-action@v1 | |
with: | |
delete-tags: pr-${{github.event.pull_request.number}} | |
packages: ${{ github.event.repository.name }} | |
owner: ${{ github.repository_owner }} | |
token: ${{ secrets.GITHUB_TOKEN }} |