PromucFlow_constructor/.github/workflows/remove-old-artifacts.yml
Nidhi b760582d14
Workflow to delete artifacts older than a day (#3646)
* delete after 2 weeks

* Added cron for nightly deletion

* Skipping tagged artifacts

* Reset
2021-03-20 15:09:07 +05:30

24 lines
431 B
YAML

name: Remove old artifacts
on:
# Run on manual trigger
workflow_dispatch:
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 day"
# Optional inputs
skip-tags: true
# skip-recent: 5