File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -142,19 +142,19 @@ jobs:
142
142
id : get-modified-packages
143
143
uses : autowarefoundation/autoware-github-actions/get-modified-packages@v1
144
144
145
- - name : Get modified files
146
- id : get-modified -files
145
+ - name : Get changed files (existing files only)
146
+ id : get-changed -files
147
147
run : |
148
- echo "changed_files =$(git diff --name-only "origin/${{ github.base_ref }}"...HEAD | grep -E '\.(cpp|hpp)$' | tr '\n' ' ' || true )" >> $GITHUB_OUTPUT
148
+ echo "changed-files =$(git diff --name-only "origin/${{ github.base_ref }}"...HEAD | grep -E '\.(cpp|hpp)$' | while read -r file; do [ -e "$file" ] && echo -n "$file "; done )" >> $GITHUB_OUTPUT
149
149
shell : bash
150
150
151
151
- name : Run clang-tidy
152
- if : ${{ steps.get-modified -files.outputs.changed_files != '' }}
152
+ if : ${{ steps.get-changed -files.outputs.changed-files != '' }}
153
153
uses : autowarefoundation/autoware-github-actions/clang-tidy@v1
154
154
with :
155
155
rosdistro : humble
156
156
target-packages : ${{ steps.get-modified-packages.outputs.modified-packages }}
157
- target-files : ${{ steps.get-modified -files.outputs.changed_files }}
157
+ target-files : ${{ steps.get-changed -files.outputs.changed-files }}
158
158
clang-tidy-config-url : https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
159
159
build-depends-repos : build_depends.repos
160
160
cache-key-element : cuda
You can’t perform that action at this time.
0 commit comments