Skip to content

Commit ca4d9d9

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 3eee8f6 commit ca4d9d9

31 files changed

+315
-38
lines changed

.clang-format

+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
# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format
26
Language: Cpp
37
BasedOnStyle: Google

.clang-tidy

+7-1
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
Checks: "
26
-*,
37
boost-use-to-string,
@@ -41,6 +45,7 @@ Checks: "
4145
bugprone-terminating-continue,
4246
bugprone-throw-keyword-missing,
4347
bugprone-too-small-loop-variable,
48+
bugprone-unchecked-optional-access,
4449
bugprone-undefined-memory-manipulation,
4550
bugprone-undelegated-constructor,
4651
bugprone-unhandled-self-assignment,
@@ -201,7 +206,8 @@ WarningsAsErrors: "
201206

202207
HeaderFilterRegex: ^(?!\/usr)(?!\/opt)
203208

204-
AnalyzeTemporaryDtors: false
209+
ExtraArgs:
210+
- -std=c++17
205211

206212
FormatStyle: none
207213

.github/ISSUE_TEMPLATE/bug.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: Bug
26
description: Report a bug
37
body:

.github/ISSUE_TEMPLATE/config.yml

+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
blank_issues_enabled: false
26
contact_links:
37
- name: Question

.github/ISSUE_TEMPLATE/task.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: Task
26
description: Plan a task
37
body:

.github/dependabot.yaml

+6-2
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
version: 2
26
updates:
37
- package-ecosystem: github-actions
@@ -6,5 +10,5 @@ updates:
610
interval: daily
711
open-pull-requests-limit: 1
812
labels:
9-
- bot
10-
- github-actions
13+
- tag:bot
14+
- 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: >
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: cancel-previous-workflows
26

37
on:
48
pull_request_target:
59

610
jobs:
711
cancel-previous-workflows:
8-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
913
steps:
1014
- name: Cancel previous runs
11-
uses: styfle/cancel-workflow-action@0.11.0
15+
uses: styfle/cancel-workflow-action@0.12.1
1216
with:
1317
workflow_id: all
1418
all_but_latest: true

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

+5-1
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: check-build-depends
26

37
on:
@@ -7,7 +11,7 @@ on:
711

812
jobs:
913
check-build-depends:
10-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1115
container: ${{ matrix.container }}
1216
strategy:
1317
fail-fast: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
name: clang-tidy-pr-comments-manually
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
workflow_run_id_or_url:
11+
description: The target workflow run ID or URL of the build-and-test-differential workflow
12+
required: true
13+
jobs:
14+
clang-tidy-pr-comments-manually:
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- name: Check out repository
18+
uses: actions/checkout@v3
19+
20+
- name: Download analysis results
21+
run: |
22+
workflow_run_id=$(echo "${{ inputs.workflow_run_id_or_url }}" | sed -e "s|.*runs/||" -e "s|/jobs.*||")
23+
gh run download "$workflow_run_id" -D /tmp || true
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Check if the fixes.yaml file exists
28+
id: check-fixes-yaml-existence
29+
uses: autowarefoundation/autoware-github-actions/check-file-existence@v1
30+
with:
31+
files: /tmp/clang-tidy-result/fixes.yaml
32+
33+
- name: Set variables
34+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
35+
id: set-variables
36+
run: |
37+
echo "pr-id=$(cat /tmp/clang-tidy-result/pr-id.txt)" >> $GITHUB_OUTPUT
38+
echo "pr-head-repo=$(cat /tmp/clang-tidy-result/pr-head-repo.txt)" >> $GITHUB_OUTPUT
39+
echo "pr-head-ref=$(cat /tmp/clang-tidy-result/pr-head-ref.txt)" >> $GITHUB_OUTPUT
40+
41+
- name: Check out PR head
42+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
43+
uses: actions/checkout@v3
44+
with:
45+
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
46+
ref: ${{ steps.set-variables.outputs.pr-head-ref }}
47+
persist-credentials: false
48+
49+
- name: Replace paths in fixes.yaml
50+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
51+
run: |
52+
sed -i -e "s|/__w/|/home/runner/work/|g" /tmp/clang-tidy-result/fixes.yaml
53+
cat /tmp/clang-tidy-result/fixes.yaml
54+
55+
- name: Copy fixes.yaml to access from Docker Container Action
56+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
57+
run: |
58+
cp /tmp/clang-tidy-result/fixes.yaml fixes.yaml
59+
60+
- name: Run clang-tidy-pr-comments action
61+
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
62+
uses: platisd/clang-tidy-pr-comments@v1
63+
with:
64+
github_token: ${{ secrets.GITHUB_TOKEN }}
65+
clang_tidy_fixes: fixes.yaml
66+
pull_request_id: ${{ steps.set-variables.outputs.pr-id }}

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

+7-3
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: clang-tidy-pr-comments
26

37
on:
@@ -10,10 +14,10 @@ on:
1014
jobs:
1115
clang-tidy-pr-comments:
1216
if: ${{ github.event.workflow_run.event == 'pull_request' && contains(fromJson('["success", "failure"]'), github.event.workflow_run.conclusion) }}
13-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-22.04
1418
steps:
1519
- name: Check out repository
16-
uses: actions/checkout@v4
20+
uses: actions/checkout@v3
1721

1822
- name: Download analysis results
1923
run: |
@@ -37,7 +41,7 @@ jobs:
3741
3842
- name: Check out PR head
3943
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
40-
uses: actions/checkout@v4
44+
uses: actions/checkout@v3
4145
with:
4246
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
4347
ref: ${{ steps.set-variables.outputs.pr-head-ref }}

.github/workflows/comment-on-pr.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: comment-on-pr
26
on:
37
pull_request_target:

.github/workflows/delete-closed-pr-docs.yaml

+6-2
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: delete-closed-pr-docs
26

37
on:
@@ -7,10 +11,10 @@ on:
711

812
jobs:
913
delete-closed-pr-docs:
10-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1115
steps:
1216
- name: Check out repository
13-
uses: actions/checkout@v4
17+
uses: actions/checkout@v3
1418
with:
1519
fetch-depth: 0
1620

.github/workflows/deploy-docs.yaml

+7-3
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: deploy-docs
26

37
on:
@@ -22,15 +26,15 @@ jobs:
2226
prevent-no-label-execution:
2327
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
2428
with:
25-
label: deploy-docs
29+
label: tag:deploy-docs
2630

2731
deploy-docs:
2832
needs: prevent-no-label-execution
2933
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
30-
runs-on: ubuntu-latest
34+
runs-on: ubuntu-22.04
3135
steps:
3236
- name: Check out repository
33-
uses: actions/checkout@v4
37+
uses: actions/checkout@v3
3438
with:
3539
fetch-depth: 0
3640
ref: ${{ github.event.pull_request.head.sha }}

.github/workflows/github-release.yaml

+5-1
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: github-release
26

37
on:
@@ -15,7 +19,7 @@ on:
1519

1620
jobs:
1721
github-release:
18-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-22.04
1923
steps:
2024
- name: Set tag name
2125
id: set-tag-name
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
name: pre-commit-autoupdate
6+
7+
on:
8+
schedule:
9+
- cron: 0 0 * * *
10+
workflow_dispatch:
11+
12+
jobs:
13+
check-secret:
14+
uses: autowarefoundation/autoware-github-actions/.github/workflows/check-secret.yaml@v1
15+
secrets:
16+
secret: ${{ secrets.APP_ID }}
17+
18+
pre-commit-autoupdate:
19+
needs: check-secret
20+
if: ${{ needs.check-secret.outputs.set == 'true' }}
21+
runs-on: ubuntu-22.04
22+
steps:
23+
- name: Generate token
24+
id: generate-token
25+
uses: tibdex/github-app-token@v2
26+
with:
27+
app_id: ${{ secrets.APP_ID }}
28+
private_key: ${{ secrets.PRIVATE_KEY }}
29+
30+
- name: Run pre-commit-autoupdate
31+
uses: autowarefoundation/autoware-github-actions/pre-commit-autoupdate@v1
32+
with:
33+
token: ${{ steps.generate-token.outputs.token }}
34+
pre-commit-config: .pre-commit-config.yaml
35+
pr-labels: |
36+
tag:bot
37+
tag:pre-commit-autoupdate
38+
pr-branch: pre-commit-autoupdate
39+
pr-title: "ci(pre-commit): autoupdate"
40+
pr-commit-message: "ci(pre-commit): autoupdate"
41+
auto-merge-method: squash

.github/workflows/pre-commit.yaml

+6-2
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: pre-commit
26

37
on:
@@ -6,11 +10,11 @@ on:
610
jobs:
711
pre-commit:
812
if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories
9-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1014
steps:
1115
- name: Generate token
1216
id: generate-token
13-
uses: tibdex/github-app-token@v1
17+
uses: tibdex/github-app-token@v2
1418
with:
1519
app_id: ${{ secrets.APP_ID }}
1620
private_key: ${{ secrets.PRIVATE_KEY }}

.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:
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
name: spell-check-daily
6+
7+
on:
8+
schedule:
9+
- cron: 0 0 * * *
10+
workflow_dispatch:
11+
12+
jobs:
13+
spell-check-daily:
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v4
18+
19+
- name: Run spell-check
20+
uses: autowarefoundation/autoware-github-actions/spell-check@v1
21+
with:
22+
incremental-files-only: false
23+
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
24+
dict-packages: |
25+
https://github.com/autowarefoundation/autoware-spell-check-dict
26+
https://github.com/tier4/cspell-dicts

0 commit comments

Comments
 (0)