autowarefoundation / autoware.universe

https://autowarefoundation.github.io/autoware.universe/
Apache License 2.0
964 stars 630 forks source link

chore(ci): fix errors in `clang-tidy-differential` job in `build-and-test-differential` workflow when all diffs are deletion #7737

Closed HansRobo closed 3 months ago

HansRobo commented 3 months ago

Description

https://github.com/autowarefoundation/autoware.universe/actions/runs/9697170930/job/26761010854?pr=7702

In #7702, all diffs are deletion and clang-tidy-differential job in build-and-test-differential workflow failed because no available files are specified to clang-tidy.

I have experienced similar situations in the past and they have been fixed in #7704. So, I applied a patch to build-and-test-differential workflow from the PR.

Related links

None.

How was this PR tested?

The clang-tidy-differential job in build-and-test-differential workflow was succeeded with deletion diffs only. https://github.com/autowarefoundation/autoware.universe/actions/runs/9704868053/job/26786046910

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

github-actions[bot] commented 3 months ago

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

HansRobo commented 3 months ago

Note: I'll fix spell-check-differential errors in another PR.

HansRobo commented 3 months ago

It works well on issued PR! https://github.com/autowarefoundation/autoware.universe/actions/runs/9705775048/job/26788492854