File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,14 @@ jobs:
32
32
container : ghcr.io/autowarefoundation/autoware:latest-prebuilt
33
33
build-depends-repos : build_depends.repos
34
34
steps :
35
- - name : Check out repository
35
+ - name : Set PR fetch depth
36
+ run : echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
37
+
38
+ - name : Checkout PR branch and all PR commits
36
39
uses : actions/checkout@v4
37
40
with :
38
- fetch-depth : 0
41
+ ref : ${{ github.event.pull_request.head.sha }}
42
+ fetch-depth : ${{ env.PR_FETCH_DEPTH }}
39
43
40
44
- name : Show disk space before the tasks
41
45
run : df -h
Original file line number Diff line number Diff line change @@ -31,10 +31,14 @@ jobs:
31
31
container : ghcr.io/autowarefoundation/autoware:latest-prebuilt
32
32
build-depends-repos : build_depends.repos
33
33
steps :
34
- - name : Check out repository
34
+ - name : Set PR fetch depth
35
+ run : echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
36
+
37
+ - name : Checkout PR branch and all PR commits
35
38
uses : actions/checkout@v4
36
39
with :
37
- fetch-depth : 0
40
+ ref : ${{ github.event.pull_request.head.sha }}
41
+ fetch-depth : ${{ env.PR_FETCH_DEPTH }}
38
42
39
43
- name : Show disk space before the tasks
40
44
run : df -h
You can’t perform that action at this time.
0 commit comments