Skip to content

Commit

Permalink
chore: add "Remove old artifacts" workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
meypod committed Feb 25, 2024
1 parent 8c6d3c9 commit b2a9bdd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/remove-old-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Remove old artifacts

on:
schedule:
# Every day at 1am
- cron: '0 1 * * *'
workflow_dispatch:

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

0 comments on commit b2a9bdd

Please sign in to comment.