From 640e6c1c959f0a687b0c6de365ce923ec4267e2b Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Tue, 5 Nov 2024 06:08:00 -0800 Subject: [PATCH] chore: adding package cleanup action this should clean old releases --- .github/workflows/merge-main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/merge-main.yml b/.github/workflows/merge-main.yml index 47a11b2..b608148 100644 --- a/.github/workflows/merge-main.yml +++ b/.github/workflows/merge-main.yml @@ -153,3 +153,28 @@ jobs: ${{ needs.vars.outputs.semver }} ``` + + + cleanup: + name: Dependency cleanup + needs: [tagging] + runs-on: ununtu-24.04 + strategy: + matrix: + name: [core,spring,certextract] + include: + - name: core + type: 'maven' + package: 'ca.bc.gov.nrs-commons.forest-client-core' + - name: spring + type: 'maven' + package: 'ca.bc.gov.nrs-commons.forest-client-spring' + - name: certextract + type: 'container' + package: 'certextractor' + steps: + - uses: actions/delete-package-versions@v5 + with: + package-name: ${{ matrix.package }} + package-type: ${{ matrix.type }} + min-versions-to-keep: 2 \ No newline at end of file