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