Skip to content

Remove Old Artifacts #154

Remove Old Artifacts

Remove Old Artifacts #154

# Copyright <2022> Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file accompanying this file. This file 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.
# Adapted from https://github.com/marketplace/actions/remove-artifacts (available under MIT license)
name: Remove Old Artifacts
on:
schedule:
# Every day at 1am
- cron: '0 1 * * *'
jobs:
remove-old-artifacts:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Remove Old Artifacts
uses: c-hive/gha-remove-artifacts@v1
with:
age: '1 week'
# skip-tags will prevent tags (i.e releases) from being deleted.
skip-tags: true