Skip to content

Cleanup Pre-release Packages #5

Cleanup Pre-release Packages

Cleanup Pre-release Packages #5

# Copyright 2021-2023 MONAI Consortium
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Cleanup Pre-release Packages
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
nuget-api-prerelease-cleanup:
name: pre-release Monai.Deploy.InformaticsGateway.Api
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions@v4
with:
package-name: 'Monai.Deploy.InformaticsGateway.Api'
package-type: nuget
min-versions-to-keep: 10
delete-only-pre-release-versions: "true"
container-prerelease-cleanup:
name: delete pre-release monai-deploy-informatics-gateway
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions@v4
with:
package-name: 'monai-deploy-informatics-gateway'
package-type: container
min-versions-to-keep: 10
delete-only-pre-release-versions: "true"
ignore-versions: '^0\.[\d]+\.[\d]+$'
container-untagged-cleanup:
name: delete untagged monai-deploy-informatics-gateway
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions@v4
with:
package-name: 'monai-deploy-informatics-gateway'
package-type: container
min-versions-to-keep: 0
delete-only-untagged-versions: "true"