Skip to content

Commit

Permalink
Auto delete old packages retaining a couple (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmygit authored Feb 23, 2024
1 parent 4e883f6 commit f3db2a4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,20 @@ jobs:
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}

clean:
name: Cleanup Packages
runs-on: ubuntu-latest
steps:
- name: Delete 4.x Package Versions
uses: actions/delete-package-versions@v5
with:
package-name: 'datastax.cdm.cassandra-data-migrator'
package-type: 'maven'
min-versions-to-keep: 7
- name: Delete 3.x Package Versions
uses: actions/delete-package-versions@v5
with:
package-name: 'datastax.astra.migrate.cassandra-data-migrator'
package-type: 'maven'
min-versions-to-keep: 6

0 comments on commit f3db2a4

Please sign in to comment.