Skip to content

Bump ruby-lsp from 0.16.6 to 0.17.1 #283

Bump ruby-lsp from 0.16.6 to 0.17.1

Bump ruby-lsp from 0.16.6 to 0.17.1 #283

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)"