From 36917b3a100b15b949b4ae4a638de9303522dfb5 Mon Sep 17 00:00:00 2001 From: Webber Date: Mon, 28 Sep 2020 18:38:20 +0200 Subject: [PATCH] remove artifacts older than 21 days --- .github/workflows/cleanup.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/cleanup.yml diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..f60c043 --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -0,0 +1,13 @@ +name: Delete old artifacts +on: + schedule: + - cron: '30 10 * * *' # every day at 10:30 + +jobs: + delete-artifacts: + runs-on: ubuntu-latest + steps: + - uses: kolpav/purge-artifacts-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + expire-in: 21 days