forked from graphhopper/graphhopper
-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (57 loc) · 1.73 KB
/
remove-old-artifacts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Remove old artifacts
on:
schedule:
- cron: '0 3 1 * *' # Every 1st of the month at 3am
workflow_dispatch:
jobs:
remove-old-artifacts:
if: github.repository_owner == 'graphhopper'
name: Remove old artifacts
runs-on: ubuntu-latest
timeout-minutes: 10 # stop the task if it takes longer
steps:
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1.3.0
with:
age: '11 months'
skip-tags: true
skip-recent: 300
remove-old-artifacts-2:
if: github.repository_owner == 'graphhopper'
name: Remove old artifacts
runs-on: ubuntu-latest
timeout-minutes: 10 # stop the task if it takes longer
steps:
- name: Remove old artifacts 2.1
uses: actions/delete-package-versions@v4.1.1
with:
package-name: matrix
package-type: maven
min-versions-to-keep: 300
- name: Remove old artifacts 2.2
uses: actions/delete-package-versions@v4.1.1
with:
package-name: com.graphhopper.graphhopper-matrix
package-type: maven
min-versions-to-keep: 300
- name: Remove old artifacts 2.3
uses: actions/delete-package-versions@v4.1.1
with:
package-name: graphhopper-matrix
package-type: maven
min-versions-to-keep: 300
remove-old-artifacts-3:
if: github.repository_owner == 'graphhopper'
name: Remove old artifacts 3
runs-on: ubuntu-latest
timeout-minutes: 10 # stop the task if it takes longer
steps:
- name: Remove old artifacts 3.1
uses: SmartsquareGmbH/delete-old-packages@v0.7.0
with:
names: |
matrix
com.graphhopper.graphhopper-matrix
graphhopper-matrix
type: maven
keep: 300