This is an automated email from the ASF dual-hosted git repository.

lizhimins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git


The following commit(s) were added to refs/heads/master by this push:
     new 913d5de8 fix(ci): join git diff output to single line for 
GITHUB_OUTPUT (#1263)
913d5de8 is described below

commit 913d5de8894231f657a8a4c555cc9704aed26584
Author: lizhimins <[email protected]>
AuthorDate: Tue Jun 9 11:34:03 2026 +0800

    fix(ci): join git diff output to single line for GITHUB_OUTPUT (#1263)
---
 .github/workflows/build.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c97f2ffd..1dacbf97 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -38,7 +38,7 @@ jobs:
               
"https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/pulls/$PR_NUMBER/files"; | \
               jq -r '.[].filename' | tr '\n' ' ')
           else
-            CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD)
+            CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD | tr '\n' ' ')
           fi
           echo "files=$CHANGED_FILES" >> "$GITHUB_OUTPUT"
 

Reply via email to