File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name: Maven Package
6
6
on :
7
7
workflow_dispatch :
8
8
push :
9
- branches : [ main ]
9
+ branches : [ main, 3.3.0_stable ]
10
10
11
11
jobs :
12
12
build :
33
33
run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
34
34
env :
35
35
GITHUB_TOKEN : ${{ github.token }}
36
+
37
+ # This following step deletes older maven packages to help automatic clean-up
38
+ # For more information, see https://github.com/marketplace/actions/delete-package-versions#delete-all-except-y-latest-versions-of-a-package
39
+
40
+ cleanup-old-maven-packages :
41
+ name : Clean-up old maven packages
42
+ needs : [ build ]
43
+ runs-on : ubuntu-latest
44
+
45
+ # max run time 20 minutes
46
+ timeout-minutes : 20
47
+
48
+ strategy :
49
+ matrix :
50
+ package : [ datastax.astra.migrate.cassandra-data-migrator, datastax.cdm.cassandra-data-migrator ]
51
+
52
+ steps :
53
+ - uses : actions/delete-package-versions@v4
54
+ with :
55
+ package-name : ${{ matrix.package }}
56
+ package-type : ' maven'
57
+ min-versions-to-keep : 10
Original file line number Diff line number Diff line change 5
5
dependency-reduced-pom.xml
6
6
.idea /*
7
7
cassandra-data-migrator.iml
8
+ * /DS_Store
You can’t perform that action at this time.
0 commit comments