Skip to content

Commit

Permalink
Create cleanup.yml (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej authored Aug 7, 2024
1 parent 9004a65 commit 95bb9a2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Packages Cleanup

on:
push:
branches: [ "main" ]

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 }}

0 comments on commit 95bb9a2

Please sign in to comment.