workflows: switch action to delete images
@@ -8,9 +8,13 @@ jobs:
cleanup:
name: PR - cleanup pr-${{ github.event.number }} images
runs-on: ubuntu-latest
+ permissions:
+ packages: write
steps:
- - uses: bots-house/ghcr-delete-image-action@v1.0.1
+ - uses: vlaurin/action-ghcr-prune@0.4.0
with:
- owner: fluent
- name: fluent-bit/pr-${{ github.event.number }}
+ organization: fluent
+ container: fluent-bit/pr-${{ github.event.number }}
token: ${{ secrets.GITHUB_TOKEN }}
+ untagged: true
+ keep-last: 0
