Skip to content

Commit

Permalink
chore(ci): fix error in clang-tidy-differential with diffs in multi…
Browse files Browse the repository at this point in the history
…ple files (#7685)

* chore(ci): output modified file list without newlines

Signed-off-by: Kotaro Yoshimoto <[email protected]>

* chore(ci): test diffs

Signed-off-by: Kotaro Yoshimoto <[email protected]>

* chore(ci): test diffs

Signed-off-by: Kotaro Yoshimoto <[email protected]>

* chore(ci): revert test diff

Signed-off-by: Kotaro Yoshimoto <[email protected]>

* chore(ci): revert test diff

Signed-off-by: Kotaro Yoshimoto <[email protected]>

---------

Signed-off-by: Kotaro Yoshimoto <[email protected]>
  • Loading branch information
HansRobo authored Jun 25, 2024
1 parent d20d901 commit 1d1ee46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/clang-tidy-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d1ee46

Please sign in to comment.