Skip to content

Remove old artifacts #1

Remove old artifacts

Remove old artifacts #1

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/[email protected]
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/[email protected]
with:
package-name: matrix
package-type: maven
min-versions-to-keep: 300
- name: Remove old artifacts 2.2
uses: actions/[email protected]
with:
package-name: com.graphhopper.graphhopper-matrix
package-type: maven
min-versions-to-keep: 300
- name: Remove old artifacts 2.3
uses: actions/[email protected]
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/[email protected]
with:
names: |
matrix
com.graphhopper.graphhopper-matrix
graphhopper-matrix
type: maven
keep: 300