Skip to content

Commit

Permalink
ci(ga): fire cleanup on closing PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwlad90 committed Jan 6, 2025
1 parent 746ca10 commit 3c59bd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
pull_request_target:
types:
- closed
pull_request:
types:
- closed
push:
branches:
- develop
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3c59bd1

Please sign in to comment.