Skip to content

proto2ros CI maintenance #1

proto2ros CI maintenance

proto2ros CI maintenance #1

Workflow file for this run

name: proto2ros CI maintenance
on:
schedule:
- cron: "0 0 * * 0" # once a week
env:
ORG_NAME: bdaiinstitute
IMAGE_NAME: proto2ros_humble
jobs:
clean-ghcr:
name: Prune old images from Github Container Registry
runs-on: ubuntu-latest
steps:
- name: Delete old pull request images
uses: snok/container-retention-policy@v2
with:
image-names: ${{ env.IMAGE_NAME }}
skip-tags: main
cut-off: One week ago UTC
org-name: ${{ env.ORG_NAME }}
account-type: org
token: ${{ secrets.GITHUB_TOKEN }}
token-type: github-token