Skip to content

Commit

Permalink
Create remove-old-artifacts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guparan committed Apr 2, 2022
1 parent 6943590 commit 958db38
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/remove-old-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Remove old artifacts

on:
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' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
# Optional inputs
# skip-tags: true
# skip-recent: 5

0 comments on commit 958db38

Please sign in to comment.