Skip to content

Bump honeybadger from 5.9.0 to 5.11.1 #285

Bump honeybadger from 5.9.0 to 5.11.1

Bump honeybadger from 5.9.0 to 5.11.1 #285

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