File tree 4 files changed +17
-11
lines changed
4 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 20
20
build-depends-repos : build_depends.repos
21
21
steps :
22
22
- name : Check out repository
23
- uses : actions/checkout@v3
23
+ uses : actions/checkout@v4
24
24
25
25
- name : Remove exec_depend
26
26
uses : autowarefoundation/autoware-github-actions/remove-exec-depend@v1
Original file line number Diff line number Diff line change @@ -20,10 +20,14 @@ jobs:
20
20
runs-on : ubuntu-latest
21
21
container : ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda
22
22
steps :
23
+ - name : Set PR fetch depth
24
+ run : echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
25
+
23
26
- name : Checkout PR branch and all PR commits
24
27
uses : actions/checkout@v4
25
28
with :
26
- fetch-depth : 0
29
+ ref : ${{ github.event.pull_request.head.sha }}
30
+ fetch-depth : ${{ env.PR_FETCH_DEPTH }}
27
31
28
32
- name : Show disk space before the tasks
29
33
run : df -h
@@ -37,17 +41,19 @@ jobs:
37
41
38
42
- name : Get modified files
39
43
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
43
49
44
50
- name : Run clang-tidy
45
- if : ${{ steps.get-modified-files.outputs.changed_files != '' }}
51
+ if : ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
46
52
uses : autowarefoundation/autoware-github-actions/clang-tidy@v1
47
53
with :
48
54
rosdistro : humble
49
55
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 }}
51
57
clang-tidy-config-url : https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
52
58
build-depends-repos : build_depends.repos
53
59
Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Check out repository
14
- uses : actions/checkout@v3
14
+ uses : actions/checkout@v4
15
15
16
16
- name : Download analysis results
17
17
run : |
36
36
37
37
- name : Check out PR head
38
38
if : ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
39
- uses : actions/checkout@v3
39
+ uses : actions/checkout@v4
40
40
with :
41
41
repository : ${{ steps.set-variables.outputs.pr-head-repo }}
42
42
ref : ${{ steps.set-variables.outputs.pr-head-ref }}
Original file line number Diff line number Diff line change 13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- name : Check out repository
16
- uses : actions/checkout@v3
16
+ uses : actions/checkout@v4
17
17
18
18
- name : Download analysis results
19
19
run : |
37
37
38
38
- name : Check out PR head
39
39
if : ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
40
- uses : actions/checkout@v3
40
+ uses : actions/checkout@v4
41
41
with :
42
42
repository : ${{ steps.set-variables.outputs.pr-head-repo }}
43
43
ref : ${{ steps.set-variables.outputs.pr-head-ref }}
You can’t perform that action at this time.
0 commit comments