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

Commit 6646862

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 8a964ca commit 6646862

File tree

2 files changed

+15
-23
lines changed

2 files changed

+15
-23
lines changed

.github/workflows/github-release.yaml

+8-23
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:

.pre-commit-config-optional.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
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
714
rev: v3.12.2

0 commit comments

Comments
 (0)