From 5e5ccb480ec7c4850dad531309d2740cf6c1c070 Mon Sep 17 00:00:00 2001 From: Ansgar Wehrhahn Date: Wed, 2 Dec 2020 23:06:55 +0100 Subject: [PATCH] Create clean_artifacts.yml --- .github/workflows/clean_artifacts.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/clean_artifacts.yml diff --git a/.github/workflows/clean_artifacts.yml b/.github/workflows/clean_artifacts.yml new file mode 100644 index 0000000..73700e3 --- /dev/null +++ b/.github/workflows/clean_artifacts.yml @@ -0,0 +1,13 @@ +name: 'Delete old artifacts' +on: + schedule: + - cron: '0 * * * *' # every hour + +jobs: + delete-artifacts: + runs-on: ubuntu-latest + steps: + - uses: kolpav/purge-artifacts-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + expire-in: 0 # Setting this to 0 will delete all artifacts