Skip to content

Commit 0b6ad3f

Browse files
tier4-autoware-public-bot[bot]github-actions
and
github-actions
authored
chore: sync files (#107)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com>
1 parent e6d504b commit 0b6ad3f

15 files changed

+108
-65
lines changed

.github/dependabot.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
version: 2
26
updates:
37
- package-ecosystem: github-actions
48
directory: /
9+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#scheduleinterval
510
schedule:
6-
interval: daily
11+
interval: monthly
712
open-pull-requests-limit: 1
813
labels:
9-
- bot
10-
- github-actions
14+
- tag:bot
15+
- type:github-actions

.github/stale.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
# Modified from https://github.com/probot/stale#usage
26

37
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed
48
daysUntilClose: false
59

610
# Label to use when marking as stale
7-
staleLabel: stale
11+
staleLabel: status:stale
812

913
# Comment to post when marking as stale
1014
markComment: >

.github/workflows/build-and-test-differential.yaml

+25-38
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,21 @@ name: build-and-test-differential
22

33
on:
44
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
510

611
jobs:
12+
make-sure-label-is-present:
13+
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
14+
with:
15+
label: tag:run-build-and-test-differential
16+
717
build-and-test-differential:
18+
needs: make-sure-label-is-present
19+
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
820
runs-on: ubuntu-latest
921
container: ${{ matrix.container }}
1022
strategy:
@@ -17,10 +29,17 @@ jobs:
1729
container: ros:humble
1830
build-depends-repos: build_depends.repos
1931
steps:
20-
- name: Check out repository
21-
uses: actions/checkout@v3
32+
- name: Set PR fetch depth
33+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
34+
35+
- name: Checkout PR branch and all PR commits
36+
uses: actions/checkout@v4
2237
with:
23-
fetch-depth: 0
38+
ref: ${{ github.event.pull_request.head.sha }}
39+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
40+
41+
- name: Show disk space before the tasks
42+
run: df -h
2443

2544
- name: Remove exec_depend
2645
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
@@ -48,44 +67,12 @@ jobs:
4867

4968
- name: Upload coverage to CodeCov
5069
if: ${{ steps.test.outputs.coverage-report-files != '' }}
51-
uses: codecov/codecov-action@v3
70+
uses: codecov/codecov-action@v4
5271
with:
5372
files: ${{ steps.test.outputs.coverage-report-files }}
5473
fail_ci_if_error: false
5574
verbose: true
5675
flags: differential
5776

58-
clang-tidy-differential:
59-
runs-on: ubuntu-latest
60-
container: ros:humble
61-
needs: build-and-test-differential
62-
steps:
63-
- name: Check out repository
64-
uses: actions/checkout@v3
65-
with:
66-
fetch-depth: 0
67-
68-
- name: Remove exec_depend
69-
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
70-
71-
- name: Get modified packages
72-
id: get-modified-packages
73-
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
74-
75-
- name: Get modified files
76-
id: get-modified-files
77-
uses: tj-actions/changed-files@v35
78-
with:
79-
files: |
80-
**/*.cpp
81-
**/*.hpp
82-
83-
- name: Run clang-tidy
84-
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
85-
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
86-
with:
87-
rosdistro: humble
88-
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
89-
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
90-
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
91-
build-depends-repos: build_depends.repos
77+
- name: Show disk space after the tasks
78+
run: df -h

.github/workflows/build-and-test.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,12 @@ jobs:
2222
build-depends-repos: build_depends.repos
2323
steps:
2424
- name: Check out repository
25-
uses: actions/checkout@v3
26-
27-
- name: Free disk space (Ubuntu)
28-
uses: jlumbroso/free-disk-space@v1.2.0
25+
uses: actions/checkout@v4
2926
with:
30-
tool-cache: false
31-
dotnet: false
32-
swap-storage: false
33-
large-packages: false
27+
fetch-depth: 1
28+
29+
- name: Show disk space before the tasks
30+
run: df -h
3431

3532
- name: Remove exec_depend
3633
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
@@ -58,9 +55,12 @@ jobs:
5855

5956
- name: Upload coverage to CodeCov
6057
if: ${{ steps.test.outputs.coverage-report-files != '' }}
61-
uses: codecov/codecov-action@v3
58+
uses: codecov/codecov-action@v4
6259
with:
6360
files: ${{ steps.test.outputs.coverage-report-files }}
6461
fail_ci_if_error: false
6562
verbose: true
6663
flags: total
64+
65+
- name: Show disk space after the tasks
66+
run: df -h

.github/workflows/cancel-previous-workflows.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Cancel previous runs
11-
uses: styfle/cancel-workflow-action@0.11.0
11+
uses: styfle/cancel-workflow-action@0.12.1
1212
with:
1313
workflow_id: all
1414
all_but_latest: true

.github/workflows/pre-commit-optional.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: pre-commit-optional
26

37
on:
48
pull_request:
59

610
jobs:
711
pre-commit-optional:
8-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
913
steps:
1014
- name: Check out repository
11-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1216
with:
1317
fetch-depth: 0
1418

.github/workflows/pre-commit.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ on:
66
jobs:
77
pre-commit:
88
if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
steps:
1111
- name: Generate token
1212
id: generate-token
13-
uses: tibdex/github-app-token@v1
13+
uses: tibdex/github-app-token@v2
1414
with:
1515
app_id: ${{ secrets.APP_ID }}
1616
private_key: ${{ secrets.PRIVATE_KEY }}
1717

1818
- name: Check out repository
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
ref: ${{ github.event.pull_request.head.ref }}
2222

.github/workflows/semantic-pull-request.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: semantic-pull-request
26

37
on:
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: spell-check-differential
26

37
on:
48
pull_request:
59

610
jobs:
711
spell-check-differential:
8-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
913
steps:
1014
- name: Check out repository
11-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1216

1317
- name: Run spell-check
1418
uses: autowarefoundation/autoware-github-actions/spell-check@v1
1519
with:
16-
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
20+
cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
21+
dict-packages: |
22+
https://github.com/autowarefoundation/autoware-spell-check-dict
23+
https://github.com/tier4/cspell-dicts

.github/workflows/sync-files.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
name: sync-files
26

37
on:
@@ -14,11 +18,11 @@ jobs:
1418
sync-files:
1519
needs: check-secret
1620
if: ${{ needs.check-secret.outputs.set == 'true' }}
17-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-22.04
1822
steps:
1923
- name: Generate token
2024
id: generate-token
21-
uses: tibdex/github-app-token@v1
25+
uses: tibdex/github-app-token@v2
2226
with:
2327
app_id: ${{ secrets.APP_ID }}
2428
private_key: ${{ secrets.PRIVATE_KEY }}
@@ -28,6 +32,6 @@ jobs:
2832
with:
2933
token: ${{ steps.generate-token.outputs.token }}
3034
pr-labels: |
31-
bot
32-
sync-files
35+
tag:bot
36+
tag:sync-files
3337
auto-merge-method: squash

.markdownlint.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
# See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md for all rules.
26
default: true
37
MD013: false
@@ -7,5 +11,6 @@ MD029:
711
style: ordered
812
MD033: false
913
MD041: false
14+
MD045: false
1015
MD046: false
1116
MD049: false

.pre-commit-config-optional.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
5+
# https://pre-commit.ci/#configuration
6+
ci:
7+
autofix_commit_msg: "style(pre-commit-optional): autofix"
8+
# we already have our own daily update mechanism, we set this to quarterly
9+
autoupdate_schedule: quarterly
10+
autoupdate_commit_msg: "ci(pre-commit-optional): quarterly autoupdate"
11+
112
repos:
213
- repo: https://github.com/tcort/markdown-link-check
3-
rev: v3.11.2
14+
rev: v3.12.2
415
hooks:
516
- id: markdown-link-check
617
args: [--quiet, --config=.markdown-link-check.json]

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
*.param.yaml
26
*.rviz

.prettierrc.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
printWidth: 100
26
tabWidth: 2
37
overrides:

.yamllint.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is automatically synced from:
2+
# https://github.com/autowarefoundation/sync-file-templates
3+
# To make changes, update the source repository and follow the guidelines in its README.
4+
15
extends: default
26

37
ignore: |

0 commit comments

Comments
 (0)