Skip to content

Commit 89eaef9

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 0089812 commit 89eaef9

File tree

4 files changed

+30
-32
lines changed

4 files changed

+30
-32
lines changed

.github/workflows/github-release.yaml

Lines changed: 8 additions & 23 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,7 +60,6 @@ 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 }}" \
7863
--title "Release ${{ steps.set-tag-name.outputs.tag-name }}" \
7964
--notes "$NOTES"
8065
env:

.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.13.7
815
hooks:
916
- id: markdown-link-check
1017
args: [--quiet, --config=.markdown-link-check.json]

.pre-commit-config.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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.45.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.1.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:
@@ -57,37 +62,37 @@ repos:
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: 6.0.1
6772
hooks:
6873
- id: isort
6974

7075
- repo: https://github.com/psf/black
71-
rev: 24.10.0
76+
rev: 25.1.0
7277
hooks:
7378
- id: black
7479
args: [--line-length=100]
7580

7681
- repo: https://github.com/pre-commit/mirrors-clang-format
77-
rev: v19.1.5
82+
rev: v20.1.8
7883
hooks:
7984
- id: clang-format
8085
types_or: [c++, c, cuda]
8186

8287
- repo: https://github.com/cpplint/cpplint
83-
rev: 2.0.0
88+
rev: 2.0.2
8489
hooks:
8590
- id: cpplint
8691
args: [--quiet]
8792
exclude: .cu
8893

8994
- repo: https://github.com/python-jsonschema/check-jsonschema
90-
rev: 0.30.0
95+
rev: 0.33.2
9196
hooks:
9297
- id: check-metaschema
9398
files: ^.+/schema/.*schema\.json$

0 commit comments

Comments
 (0)