Skip to content

Bump aws-sdk-s3 from 1.164.0 to 1.171.0 #364

Bump aws-sdk-s3 from 1.164.0 to 1.171.0

Bump aws-sdk-s3 from 1.164.0 to 1.171.0 #364

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