From 3c59bd115c89a22cf4530c78fc42eb35fd1fcf75 Mon Sep 17 00:00:00 2001 From: Dwlad90 Date: Mon, 6 Jan 2025 23:13:04 +0200 Subject: [PATCH] ci(ga): fire cleanup on closing PR --- .github/workflows/cleanup.yaml | 5 ++++- .github/workflows/npm.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cleanup.yaml b/.github/workflows/cleanup.yaml index 7c235004c..99ab6cb1b 100644 --- a/.github/workflows/cleanup.yaml +++ b/.github/workflows/cleanup.yaml @@ -3,6 +3,9 @@ on: pull_request_target: types: - closed + pull_request: + types: + - closed push: branches: - develop @@ -40,7 +43,7 @@ jobs: for key in $cacheKeys; do echo "Cache \"$key will\" will be deleted" - gh cache delete $key || true + gh cache delete "$key" || true done echo "Cache cleanup completed" diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 08ab20502..025691810 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -339,7 +339,7 @@ jobs: echo "🗑️ Deleting caches..." for key in $cacheKeys; do echo "Deleting cache: $key" - gh cache delete "$key" --confirm + gh cache delete "$key" || true done echo "✅ Cache cleanup completed"