diff --git a/.github/workflows/rm-old.yml b/.github/workflows/rm-old.yml new file mode 100644 index 00000000..6a906d30 --- /dev/null +++ b/.github/workflows/rm-old.yml @@ -0,0 +1,21 @@ +name: Remove old artifacts + +on: + push: + branches: [ "main", "next" ] + pull_request: + branches: [ "main", "next" ] + +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: '2 days' # ' ', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js + # Optional inputs + # skip-tags: true + # skip-recent: 5