RetroDECK/.github/workflows/remove-artifacts.yml

23 lines
470 B
YAML
Raw Normal View History

2022-05-06 00:31:51 +00:00
name: Remove-artifacts
2022-05-06 00:23:17 +00:00
on:
#schedule:
# Every day at 1am
# - cron: '0 1 * * *'
2022-05-06 00:31:51 +00:00
workflow_dispatch:
2022-05-06 00:23:17 +00:00
jobs:
remove-old-artifacts:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1
2022-05-06 00:37:11 +00:00
with:
age: '2 seconds' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
2022-05-06 00:23:17 +00:00
# Optional inputs
# skip-tags: true
2022-05-06 00:28:03 +00:00
# skip-recent: 5