File 1031-gh-Only-merge-PRs-created-to-fix-github-actions.patch of Package erlang

From 1aeb95c706ee92a09bac861f5b297c9565906689 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Mon, 9 Jun 2025 12:49:33 +0200
Subject: [PATCH] gh: Only merge PRs created to fix github actions

---
 .github/scripts/update-gh-actions-versions.es | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/scripts/update-gh-actions-versions.es b/.github/scripts/update-gh-actions-versions.es
index 7b43712614..8ba522de82 100755
--- a/.github/scripts/update-gh-actions-versions.es
+++ b/.github/scripts/update-gh-actions-versions.es
@@ -93,7 +93,7 @@ run(Opts) ->
     SupportedMajorVersions = string:split(cmd(Opts, ".github/scripts/get-supported-versions.sh"),"\n", all),
 
     %% Fetch all PRs done by renovate
-    PRs = cmd(Opts, ["gh pr -R ", Upstream, " list | grep 'renovate/' | awk '{print $1}'"]),
+    PRs = cmd(Opts, ["gh pr -R ", Upstream, " list | grep 'renovate/[a-z-]\\+github-actions' | awk '{print $1}'"]),
 
     %% If string is non-empty we have some PRs that we need to deal with
     case not string:equal(PRs,"") of
-- 
2.43.0

openSUSE Build Service is sponsored by