|
5 | 5 | types:
|
6 | 6 | - opened
|
7 | 7 | - synchronize
|
| 8 | + - reopened |
8 | 9 | - labeled
|
9 | 10 |
|
10 | 11 | jobs:
|
11 |
| - prevent-no-label-execution: |
12 |
| - uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1 |
| 12 | + make-sure-label-is-present: |
| 13 | + uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1 |
13 | 14 | with:
|
14 | 15 | label: tag:run-clang-tidy-differential
|
15 | 16 |
|
16 | 17 | clang-tidy-differential:
|
17 |
| - needs: prevent-no-label-execution |
18 |
| - if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }} |
| 18 | + needs: make-sure-label-is-present |
| 19 | + if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }} |
19 | 20 | runs-on: ubuntu-latest
|
20 | 21 | container: ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda
|
21 | 22 | steps:
|
22 |
| - - name: Check out repository |
| 23 | + - name: Set PR fetch depth |
| 24 | + run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}" |
| 25 | + |
| 26 | + - name: Checkout PR branch and all PR commits |
23 | 27 | uses: actions/checkout@v4
|
24 | 28 | with:
|
25 |
| - fetch-depth: 0 |
| 29 | + ref: ${{ github.event.pull_request.head.sha }} |
| 30 | + fetch-depth: ${{ env.PR_FETCH_DEPTH }} |
26 | 31 |
|
27 | 32 | - name: Show disk space before the tasks
|
28 | 33 | run: df -h
|
|
36 | 41 |
|
37 | 42 | - name: Get modified files
|
38 | 43 | id: get-modified-files
|
39 |
| - uses: tj-actions/changed-files@v35 |
| 44 | + uses: tj-actions/changed-files@v42 |
40 | 45 | with:
|
41 | 46 | files: |
|
42 | 47 | **/*.cpp
|
|
51 | 56 | target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
|
52 | 57 | clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
|
53 | 58 | build-depends-repos: build_depends.repos
|
| 59 | + |
| 60 | + - name: Show disk space after the tasks |
| 61 | + run: df -h |
0 commit comments