Skip to content

Commit

Permalink
restore fixes.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: veqcc <[email protected]>
  • Loading branch information
veqcc committed Jun 28, 2024
1 parent 4185b42 commit 90a0f2a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions clang-tidy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ runs:
if: ${{ steps.get-target-files.outputs.target-files != '' }}
run: |
mkdir /tmp/clang-tidy-result
clang-tidy -p build/ ${{ steps.get-target-files.outputs.target-files }} > /tmp/clang-tidy-result/report.txt || true
clang-tidy -p build/ -export-fixes /tmp/clang-tidy-result/fixes.yaml ${{ steps.get-target-files.outputs.target-files }} > /tmp/clang-tidy-result/report.txt || true
echo "${{ github.event.number }}" > /tmp/clang-tidy-result/pr-id.txt
echo "${{ github.event.pull_request.head.repo.full_name }}" > /tmp/clang-tidy-result/pr-head-repo.txt
echo "${{ github.event.pull_request.head.ref }}" > /tmp/clang-tidy-result/pr-head-ref.txt
Expand All @@ -138,8 +138,14 @@ runs:
with:
files: /tmp/clang-tidy-result/report.txt

- name: Check if the fixes.yaml file exists
id: check-fixes-yaml-existence
uses: autowarefoundation/autoware-github-actions/check-file-existence@v1
with:
files: /tmp/clang-tidy-result/fixes.yaml

- name: Upload artifacts
if: ${{ steps.check-report-txt-existence.outputs.exists == 'true' }}
if: ${{ steps.check-report-txt-existence.outputs.exists == 'true' && steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
uses: actions/upload-artifact@v4
with:
name: clang-tidy-result
Expand Down

0 comments on commit 90a0f2a

Please sign in to comment.