Skip to content

Commit 68b47c3

Browse files
github-actionsgithub-actions[bot]
github-actions
authored andcommitted
chore: sync files
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0256188 commit 68b47c3

4 files changed

+17
-11
lines changed

.github/workflows/check-build-depends.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
build-depends-repos: build_depends.repos
2121
steps:
2222
- name: Check out repository
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
- name: Remove exec_depend
2626
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1

.github/workflows/clang-tidy-differential.yaml

+12-6
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ jobs:
2020
runs-on: ubuntu-latest
2121
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda
2222
steps:
23+
- name: Set PR fetch depth
24+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
25+
2326
- name: Checkout PR branch and all PR commits
2427
uses: actions/checkout@v4
2528
with:
26-
fetch-depth: 0
29+
ref: ${{ github.event.pull_request.head.sha }}
30+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
2731

2832
- name: Show disk space before the tasks
2933
run: df -h
@@ -37,17 +41,19 @@ jobs:
3741

3842
- name: Get modified files
3943
id: get-modified-files
40-
run: |
41-
echo "changed_files=$(git diff --name-only "origin/${{ github.base_ref }}"...HEAD | grep -E '\.(cpp|hpp)$' || true)" >> $GITHUB_OUTPUT
42-
shell: bash
44+
uses: tj-actions/changed-files@v42
45+
with:
46+
files: |
47+
**/*.cpp
48+
**/*.hpp
4349
4450
- name: Run clang-tidy
45-
if: ${{ steps.get-modified-files.outputs.changed_files != '' }}
51+
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
4652
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
4753
with:
4854
rosdistro: humble
4955
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
50-
target-files: ${{ steps.get-modified-files.outputs.changed_files }}
56+
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
5157
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
5258
build-depends-repos: build_depends.repos
5359

.github/workflows/clang-tidy-pr-comments-manually.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Download analysis results
1717
run: |
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Check out PR head
3838
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
39-
uses: actions/checkout@v3
39+
uses: actions/checkout@v4
4040
with:
4141
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
4242
ref: ${{ steps.set-variables.outputs.pr-head-ref }}

.github/workflows/clang-tidy-pr-comments.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Check out repository
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Download analysis results
1919
run: |
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Check out PR head
3939
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141
with:
4242
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
4343
ref: ${{ steps.set-variables.outputs.pr-head-ref }}

0 commit comments

Comments
 (0)