From 3661d84dacc42e6b8f8903d52a1140a34a3bf623 Mon Sep 17 00:00:00 2001 From: Leah Date: Tue, 10 Jan 2023 17:48:35 +0100 Subject: [PATCH] clean cache a little less often (#3245) `check_run` was probably overkill, also added concurrency to not make it run multiple times for the same commit --- .github/workflows/pr-clean-caches.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-clean-caches.yml b/.github/workflows/pr-clean-caches.yml index 864593004be6e..0dcdad1179005 100644 --- a/.github/workflows/pr-clean-caches.yml +++ b/.github/workflows/pr-clean-caches.yml @@ -1,13 +1,16 @@ name: Cleanup branch caches on: - pull_request: - types: [opened, edited, closed, synchronize] - check_run: - types: [completed] check_suite: types: [completed] + pull_request: + types: [opened, closed, reopened, synchronize] + push: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: cleanup: runs-on: ubuntu-latest