Skip to content

Create cleanup.yml

Create cleanup.yml #1

Workflow file for this run

name: Packages Cleanup
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
steps:
- name: Delete Untagged
uses: actions/delete-package-versions@v5
with:
owner: ${{ github.repository_owner }}
package-type: container
package-name: glassfish
delete-only-untagged-versions: 'true'
token: ${{ secrets.GITHUB_TOKEN }}