File 0299-gh-Fix-many-deleted-files.patch of Package erlang

From 8ac5c2a701af8c4eb1e5d93126982d6ae55ebcf2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Mon, 3 Feb 2025 19:40:26 +0100
Subject: [PATCH 1/2] gh: Fix many deleted files

---
 .github/workflows/main.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index b9425bf909..927ab3ab53 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -155,7 +155,7 @@ jobs:
             BOOTSTRAP: ${{ steps.cache.outputs.bootstrap }}
             CONFIGURE: ${{ steps.cache.outputs.configure }}
             EVENT: ${{ github.event_name }}
-            DELETED: ${{ steps.cache.outputs.deleted_files }}
+            DELETED: ${{ fromJson(steps.cache.outputs.deleted_count) > 20 && '[]' || steps.cache.outputs.deleted_files }}
         run: |
             .github/scripts/restore-from-prebuilt.sh "`pwd`" \
               "`pwd`/.github/otp.tar.gz" \
-- 
2.43.0

openSUSE Build Service is sponsored by