Skip to content

Commit 3a7c564

Browse files
committed
Github packages cleanup try
1 parent 7c530c2 commit 3a7c564

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

.github/workflows/remove-old-artifacts.yml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,53 @@ jobs:
1212

1313
steps:
1414
- name: Remove old artifacts
15-
uses: c-hive/gha-remove-artifacts@v1
15+
uses: c-hive/gha-remove-artifacts@v1.3.0
1616
with:
1717
age: '11 months'
1818
skip-tags: true
1919
skip-recent: 10
20+
21+
remove-old-artifacts-2:
22+
if: github.repository_owner == 'graphhopper'
23+
name: Remove old artifacts
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 10 # stop the task if it takes longer
26+
27+
steps:
28+
- name: Remove old artifacts 2.1
29+
uses: actions/[email protected]
30+
with:
31+
package-name: matrix
32+
package-type: maven
33+
min-versions-to-keep: 30
34+
35+
- name: Remove old artifacts 2.2
36+
uses: actions/[email protected]
37+
with:
38+
package-name: com.graphhopper.graphhopper-matrix
39+
package-type: maven
40+
min-versions-to-keep: 30
41+
42+
- name: Remove old artifacts 2.3
43+
uses: actions/[email protected]
44+
with:
45+
package-name: graphhopper-matrix
46+
package-type: maven
47+
min-versions-to-keep: 30
48+
49+
remove-old-artifacts-3:
50+
if: github.repository_owner == 'graphhopper'
51+
name: Remove old artifacts 3
52+
runs-on: ubuntu-latest
53+
timeout-minutes: 10 # stop the task if it takes longer
54+
55+
steps:
56+
- name: Remove old artifacts 2.1
57+
uses: actions/[email protected]
58+
with:
59+
names: |
60+
matrix
61+
com.graphhopper.graphhopper-matrix
62+
graphhopper-matrix
63+
type: maven
64+
keep: 30

0 commit comments

Comments
 (0)