Skip to content

Commit 3473d5f

Browse files
github-actionsgithub-actions[bot]
authored andcommitted
chore: sync files
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 661347b commit 3473d5f

File tree

4 files changed

+35
-36
lines changed

4 files changed

+35
-36
lines changed

.github/workflows/github-release.yaml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ name: github-release
66

77
on:
88
push:
9-
branches:
10-
- beta/v*
119
tags:
12-
- v*
10+
- "[0-9]+.[0-9]+.[0-9]+"
1311
workflow_dispatch:
1412
inputs:
15-
beta-branch-or-tag-name:
16-
description: The name of the beta branch or tag to release
13+
tag-name:
14+
description: The name of the tag to release
1715
type: string
1816
required: true
1917

@@ -25,36 +23,24 @@ jobs:
2523
id: set-tag-name
2624
run: |
2725
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
28-
REF_NAME="${{ github.event.inputs.beta-branch-or-tag-name }}"
26+
REF_NAME="${{ github.event.inputs.tag-name }}"
2927
else
3028
REF_NAME="${{ github.ref_name }}"
3129
fi
3230
33-
echo "ref-name=$REF_NAME" >> $GITHUB_OUTPUT
34-
echo "tag-name=${REF_NAME#beta/}" >> $GITHUB_OUTPUT
31+
echo "tag-name=$REF_NAME" >> $GITHUB_OUTPUT
3532
3633
- name: Check out repository
3734
uses: actions/checkout@v4
3835
with:
3936
fetch-depth: 0
40-
ref: ${{ steps.set-tag-name.outputs.ref-name }}
41-
42-
- name: Set target name for beta branches
43-
id: set-target-name
44-
run: |
45-
if [[ "${{ steps.set-tag-name.outputs.ref-name }}" =~ "beta/" ]]; then
46-
echo "target-name=${{ steps.set-tag-name.outputs.ref-name }}" >> $GITHUB_OUTPUT
47-
fi
48-
49-
- name: Create a local tag for beta branches
50-
run: |
51-
if [ "${{ steps.set-target-name.outputs.target-name }}" != "" ]; then
52-
git tag "${{ steps.set-tag-name.outputs.tag-name }}"
53-
fi
37+
ref: ${{ steps.set-tag-name.outputs.tag-name }}
5438

5539
- name: Run generate-changelog
5640
id: generate-changelog
5741
uses: autowarefoundation/autoware-github-actions/generate-changelog@v1
42+
with:
43+
git-cliff-args: --tag-pattern "^(\d+)\.(\d+)\.(\d+)$" --latest
5844

5945
- name: Select verb
6046
id: select-verb
@@ -74,8 +60,7 @@ jobs:
7460
run: |
7561
gh release ${{ steps.select-verb.outputs.verb }} "${{ steps.set-tag-name.outputs.tag-name }}" \
7662
--draft \
77-
--target "${{ steps.set-target-name.outputs.target-name }}" \
78-
--title "Release ${{ steps.set-tag-name.outputs.tag-name }}" \
63+
--title "${{ steps.set-tag-name.outputs.tag-name }}" \
7964
--notes "$NOTES"
8065
env:
8166
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.markdownlint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ MD041: false
1414
MD045: false
1515
MD046: false
1616
MD049: false
17+
MD059: false

.pre-commit-config-optional.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
# https://github.com/autowarefoundation/sync-file-templates
33
# To make changes, update the source repository and follow the guidelines in its README.
44

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+
512
repos:
613
- repo: https://github.com/tcort/markdown-link-check
7-
rev: v3.12.2
14+
rev: v3.14.2
815
hooks:
916
- id: markdown-link-check
1017
args: [--quiet, --config=.markdown-link-check.json]

.pre-commit-config.yaml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ci:
1111

1212
repos:
1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v5.0.0
14+
rev: v6.0.0
1515
hooks:
1616
- id: check-json
1717
- id: check-merge-conflict
@@ -26,7 +26,7 @@ repos:
2626
args: [--markdown-linebreak-ext=md]
2727

2828
- repo: https://github.com/igorshubovych/markdownlint-cli
29-
rev: v0.43.0
29+
rev: v0.46.0
3030
hooks:
3131
- id: markdownlint
3232
args: [-c, .markdownlint.yaml, --fix]
@@ -37,10 +37,15 @@ repos:
3737
- id: prettier
3838

3939
- repo: https://github.com/adrienverge/yamllint
40-
rev: v1.35.1
40+
rev: v1.37.1
4141
hooks:
4242
- id: yamllint
4343

44+
- repo: https://github.com/autowarefoundation/autoware-guideline-check
45+
rev: 0.2.0
46+
hooks:
47+
- id: check-package-depends
48+
4449
- repo: https://github.com/tier4/pre-commit-hooks-ros
4550
rev: v0.10.0
4651
hooks:
@@ -52,42 +57,43 @@ repos:
5257
- id: sort-package-xml
5358

5459
- repo: https://github.com/shellcheck-py/shellcheck-py
55-
rev: v0.10.0.1
60+
rev: v0.11.0.1
5661
hooks:
5762
- id: shellcheck
5863

5964
- repo: https://github.com/scop/pre-commit-shfmt
60-
rev: v3.10.0-2
65+
rev: v3.12.0-2
6166
hooks:
6267
- id: shfmt
6368
args: [-w, -s, -i=4]
6469

6570
- repo: https://github.com/pycqa/isort
66-
rev: 5.13.2
71+
rev: 7.0.0
6772
hooks:
6873
- id: isort
74+
args: [--profile=black, --line-length=100]
6975

7076
- repo: https://github.com/psf/black
71-
rev: 24.10.0
77+
rev: 25.11.0
7278
hooks:
7379
- id: black
7480
args: [--line-length=100]
7581

7682
- repo: https://github.com/pre-commit/mirrors-clang-format
77-
rev: v19.1.5
83+
rev: v21.1.6
7884
hooks:
7985
- id: clang-format
8086
types_or: [c++, c, cuda]
8187

8288
- repo: https://github.com/cpplint/cpplint
83-
rev: 2.0.0
89+
rev: 2.0.2
8490
hooks:
8591
- id: cpplint
8692
args: [--quiet]
8793
exclude: .cu
8894

8995
- repo: https://github.com/python-jsonschema/check-jsonschema
90-
rev: 0.30.0
96+
rev: 0.35.0
9197
hooks:
9298
- id: check-metaschema
9399
files: ^.+/schema/.*schema\.json$
@@ -103,7 +109,7 @@ repos:
103109
additional_dependencies: [prettier@2.7.1, "@prettier/plugin-xml@2.2.0"]
104110

105111
- repo: https://github.com/AleksaC/hadolint-py
106-
rev: v2.12.1b3
112+
rev: v2.14.0
107113
hooks:
108114
- id: hadolint
109115
exclude: .svg$

0 commit comments

Comments
 (0)