Skip to content

Bump view_component from 3.14.0 to 3.19.0 #351

Bump view_component from 3.14.0 to 3.19.0

Bump view_component from 3.14.0 to 3.19.0 #351

name: Cleanup docker images
on:
pull_request:
branches:
- main
- '**/main'
types: [closed]
jobs:
clean:
runs-on: ubuntu-latest
steps:
- name: List all versions
run: |
gh api "/users/yannis/packages/container/kasaharacup-app/versions?per_page=100" \
--jq '.[] | {id: .id, version: .metadata.container.tags.[0]} | select(.version == "pr-${{github.event.number}}") | .id' \
> version_id
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete package version
run: |
curl -X DELETE \
-u ${{ github.actor }}:${{ secrets.CLEANUP_DOCKER_IMAGES_GITHUB_TOKEN }} \
"https://api.github.com/users/yannis/packages/container/kasaharacup-app/versions/$(cat version_id)"