Skip to content

Commit

Permalink
Add workflow try to remove artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
YuhangTom committed Sep 18, 2023
1 parent fb8c87c commit 518641e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/remove-old-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Remove old artifacts

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

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 518641e

Please sign in to comment.