From 1d1ee46f55f8c494f03bd0c1b2779e8bd0182bec Mon Sep 17 00:00:00 2001 From: Kotaro Yoshimoto Date: Tue, 25 Jun 2024 22:50:59 +0900 Subject: [PATCH] chore(ci): fix error in `clang-tidy-differential` with diffs in multiple files (#7685) * chore(ci): output modified file list without newlines Signed-off-by: Kotaro Yoshimoto * chore(ci): test diffs Signed-off-by: Kotaro Yoshimoto * chore(ci): test diffs Signed-off-by: Kotaro Yoshimoto * chore(ci): revert test diff Signed-off-by: Kotaro Yoshimoto * chore(ci): revert test diff Signed-off-by: Kotaro Yoshimoto --------- Signed-off-by: Kotaro Yoshimoto --- .github/workflows/clang-tidy-differential.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clang-tidy-differential.yaml b/.github/workflows/clang-tidy-differential.yaml index e2e4fc478e0ee..60337cc572e7a 100644 --- a/.github/workflows/clang-tidy-differential.yaml +++ b/.github/workflows/clang-tidy-differential.yaml @@ -38,7 +38,7 @@ jobs: - name: Get modified files id: get-modified-files run: | - echo "changed_files=$(git diff --name-only "origin/${{ github.base_ref }}"...HEAD | grep -E '\.(cpp|hpp)$' || true)" >> $GITHUB_OUTPUT + echo "changed_files=$(git diff --name-only "origin/${{ github.base_ref }}"...HEAD | grep -E '\.(cpp|hpp)$' | tr '\n' ' ' || true)" >> $GITHUB_OUTPUT shell: bash - name: Run clang-tidy