File 6203-gh-Purge-the-correct-target-dir.patch of Package erlang
From 50f9df8e2fe5ff6932d99445211eb1066e28022f Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 5 Jun 2023 15:14:33 +0200
Subject: [PATCH] gh: Purge the correct target dir
---
.github/scripts/sync-github-prs.es | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/scripts/sync-github-prs.es b/.github/scripts/sync-github-prs.es
index 89edf7133d..a78c165058 100755
--- a/.github/scripts/sync-github-prs.es
+++ b/.github/scripts/sync-github-prs.es
@@ -161,7 +161,7 @@ purge_suite(SuiteFilePath) ->
%% github actions will not work them. So we purge the largest files until we
%% reach the 10 GB limit.
purge_prs(Target) ->
- Files = string:split(cmd("find prs -type f -exec du -a {} \+"),"\n",all),
+ Files = string:split(cmd("find " ++ Target ++ " -type f -exec du -a {} \+"),"\n",all),
SortedFiles =
lists:sort(fun([A|_]=As,[B|_]=Bs) ->
binary_to_integer(A) >= binary_to_integer(B)
--
2.35.3