Skip to content

Remove old package versions #131

Remove old package versions

Remove old package versions #131

name: Remove old package versions
description: Cleanup of old versions of MAGDA Mock artifacts from Github Packages

Check failure on line 2 in .github/workflows/cleanup-packages.yml

View workflow run for this annotation

GitHub Actions / Remove old package versions

Invalid workflow file

The workflow is not valid. .github/workflows/cleanup-packages.yml (Line: 2, Col: 1): Unexpected value 'description' .github/workflows/cleanup-packages.yml (Line: 12, Col: 5): Required property is missing: runs-on
on:
workflow_dispatch: {}
schedule:
# Every day at 1am
- cron: '0 1 * * *'
jobs:
remove-old-artifacts:
steps:
- uses: actions/delete-package-versions@v4
with:
package-name: 'magda-mock'
package-type: 'container'
min-versions-to-keep: 5
- uses: actions/delete-package-versions@v4
with:
package-name: 'be.vlaanderen.vip.mock.magdamock'
package-type: 'maven'
min-versions-to-keep: 3
- uses: actions/delete-package-versions@v4
with:
package-name: 'be.vlaanderen.vip.mock.interfaces'
package-type: 'maven'
min-versions-to-keep: 3
- uses: actions/delete-package-versions@v4
with:
package-name: 'be.vlaanderen.vip.mock.magdaconnector'
package-type: 'maven'
min-versions-to-keep: 3
- uses: actions/delete-package-versions@v4
with:
package-name: 'be.vlaanderen.vip.mock.magdaservice'
package-type: 'maven'
min-versions-to-keep: 3
- uses: actions/delete-package-versions@v4
with:
package-name: 'be.vlaanderen.vip.mock.magda'
package-type: 'maven'
min-versions-to-keep: 3