From c3a73751dff4e1acda50235f095fd4b1eb4d0370 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Mon, 21 Sep 2020 20:32:54 +0200 Subject: [PATCH] Add Workflow to delete old artifacts --- .github/workflows/delete_old_artifacts.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/delete_old_artifacts.yml diff --git a/.github/workflows/delete_old_artifacts.yml b/.github/workflows/delete_old_artifacts.yml new file mode 100644 index 0000000000000..c5c9da0ad8597 --- /dev/null +++ b/.github/workflows/delete_old_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: 7days # Setting this to 0 will delete all artifacts