From 8ac276c21b09a4677fe1bbb6b069620da0848faf Mon Sep 17 00:00:00 2001 From: ikolomi Date: Tue, 26 Nov 2024 16:44:33 +0200 Subject: [PATCH] Fix for ORT sweeper: Ensure multiple release-* branches are parsed correctly by removing newlines between branch names. Signed-off-by: ikolomi --- .github/workflows/ort-sweeper.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ort-sweeper.yml b/.github/workflows/ort-sweeper.yml index 25482f9737..f301901666 100644 --- a/.github/workflows/ort-sweeper.yml +++ b/.github/workflows/ort-sweeper.yml @@ -16,7 +16,7 @@ jobs: id: get-branches run: | # Get all branches matching 'release-*' and include 'main' - branches=$(git ls-remote --heads origin | awk -F'/' '/refs\/heads\/release-/ {print $NF}') + branches=$(git ls-remote --heads origin | awk -F'/' '/refs\/heads\/release-/ {printf $NF" "}') branches="main $branches" echo "::set-output name=branches::$branches" env: