From bdcf8de84479e2f83d6ada74517e927d2faf2cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mat=C4=9Bj=C4=8Dek?= Date: Wed, 7 Aug 2024 03:00:48 +0200 Subject: [PATCH] Create cleanup.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: David Matějček --- .github/workflows/cleanup.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/cleanup.yml diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..64a97fb --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -0,0 +1,25 @@ +name: Packages Cleanup + +on: + 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: + package-type: container + package-name: glassfish + delete-only-untagged-versions: 'true' + token: ${{ secrets.GITHUB_TOKEN }}