Skip to content

Commit 63ef9e5

Browse files
awf-autoware-bot[bot]github-actions
and
github-actions
authored
chore: sync files (#10009)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com>
1 parent 32e3402 commit 63ef9e5

File tree

1 file changed

+8
-23
lines changed

1 file changed

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

0 commit comments

Comments
 (0)