Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit 654246c

Browse files
awf-autoware-bot[bot]github-actions
andauthored
chore: sync files (#54)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <[email protected]>
1 parent 3e652bf commit 654246c

22 files changed

+231
-75
lines changed

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 4 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 8 additions & 3 deletions
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/pull_request_template.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Description
2+
3+
## How was this PR tested?
4+
5+
## Notes for reviewers
6+
7+
None.
8+
9+
## Effects on system behavior
10+
11+
None.

.github/stale.yml

Lines changed: 5 additions & 1 deletion
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: >
Lines changed: 30 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
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: build-and-test-differential
26

37
on:
48
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
- reopened
13+
- labeled
514

615
jobs:
16+
make-sure-label-is-present:
17+
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
18+
with:
19+
label: run:build-and-test-differential
20+
721
build-and-test-differential:
8-
runs-on: ubuntu-latest
22+
needs: make-sure-label-is-present
23+
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
24+
runs-on: ubuntu-22.04
925
container: ${{ matrix.container }}
1026
strategy:
1127
fail-fast: false
@@ -17,10 +33,17 @@ jobs:
1733
container: ros:humble
1834
build-depends-repos: build_depends.repos
1935
steps:
20-
- name: Check out repository
21-
uses: actions/checkout@v3
36+
- name: Set PR fetch depth
37+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
38+
39+
- name: Checkout PR branch and all PR commits
40+
uses: actions/checkout@v4
2241
with:
23-
fetch-depth: 0
42+
ref: ${{ github.event.pull_request.head.sha }}
43+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
44+
45+
- name: Show disk space before the tasks
46+
run: df -h
2447

2548
- name: Remove exec_depend
2649
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
@@ -48,44 +71,12 @@ jobs:
4871

4972
- name: Upload coverage to CodeCov
5073
if: ${{ steps.test.outputs.coverage-report-files != '' }}
51-
uses: codecov/codecov-action@v3
74+
uses: codecov/codecov-action@v5
5275
with:
5376
files: ${{ steps.test.outputs.coverage-report-files }}
5477
fail_ci_if_error: false
5578
verbose: true
5679
flags: differential
5780

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@v34
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
81+
- name: Show disk space after the tasks
82+
run: df -h

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

Lines changed: 15 additions & 3 deletions
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: build-and-test
26

37
on:
@@ -9,7 +13,7 @@ on:
913
jobs:
1014
build-and-test:
1115
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
12-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1317
container: ${{ matrix.container }}
1418
strategy:
1519
fail-fast: false
@@ -22,7 +26,12 @@ jobs:
2226
build-depends-repos: build_depends.repos
2327
steps:
2428
- name: Check out repository
25-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 1
32+
33+
- name: Show disk space before the tasks
34+
run: df -h
2635

2736
- name: Remove exec_depend
2837
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
@@ -50,9 +59,12 @@ jobs:
5059

5160
- name: Upload coverage to CodeCov
5261
if: ${{ steps.test.outputs.coverage-report-files != '' }}
53-
uses: codecov/codecov-action@v3
62+
uses: codecov/codecov-action@v5
5463
with:
5564
files: ${{ steps.test.outputs.coverage-report-files }}
5665
fail_ci_if_error: false
5766
verbose: true
5867
flags: total
68+
69+
- name: Show disk space after the tasks
70+
run: df -h

.github/workflows/comment-on-pr.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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: comment-on-pr
6+
on:
7+
pull_request_target:
8+
9+
jobs:
10+
comment-on-pr:
11+
runs-on: ubuntu-22.04
12+
permissions:
13+
pull-requests: write
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v4
17+
18+
- name: Initial PR comment
19+
uses: marocchino/sticky-pull-request-comment@v2
20+
with:
21+
message: |
22+
Thank you for contributing to the Autoware project!
23+
24+
🚧 If your pull request is in progress, [switch it to draft mode](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request#converting-a-pull-request-to-a-draft).
25+
26+
Please ensure:
27+
- You've checked our [contribution guidelines](https://autowarefoundation.github.io/autoware-documentation/main/contributing/).
28+
- Your PR follows our [pull request guidelines](https://autowarefoundation.github.io/autoware-documentation/main/contributing/pull-request-guidelines/).
29+
- All required CI checks pass before [marking the PR ready for review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request#marking-a-pull-request-as-ready-for-review).

.github/workflows/github-release.yaml

Lines changed: 10 additions & 6 deletions
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
@@ -26,11 +30,11 @@ jobs:
2630
REF_NAME="${{ github.ref_name }}"
2731
fi
2832
29-
echo ::set-output name=ref-name::"$REF_NAME"
30-
echo ::set-output name=tag-name::"${REF_NAME#beta/}"
33+
echo "ref-name=$REF_NAME" >> $GITHUB_OUTPUT
34+
echo "tag-name=${REF_NAME#beta/}" >> $GITHUB_OUTPUT
3135
3236
- name: Check out repository
33-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3438
with:
3539
fetch-depth: 0
3640
ref: ${{ steps.set-tag-name.outputs.ref-name }}
@@ -39,7 +43,7 @@ jobs:
3943
id: set-target-name
4044
run: |
4145
if [[ "${{ steps.set-tag-name.outputs.ref-name }}" =~ "beta/" ]]; then
42-
echo ::set-output name=target-name::"${{ steps.set-tag-name.outputs.ref-name }}"
46+
echo "target-name=${{ steps.set-tag-name.outputs.ref-name }}" >> $GITHUB_OUTPUT
4347
fi
4448
4549
- name: Create a local tag for beta branches
@@ -62,7 +66,7 @@ jobs:
6266
verb=edit
6367
fi
6468
65-
echo ::set-output name=verb::"$verb"
69+
echo "verb=$verb" >> $GITHUB_OUTPUT
6670
env:
6771
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6872

0 commit comments

Comments
 (0)