Skip to content

Commit aaebc61

Browse files
committed
fix 🐛(release): change generate tag release on workflow (#16)
Signed-off-by: Luis Mayta <luis@hadenlabs.com>
1 parent 2960b9c commit aaebc61

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.chglog/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ options:
5959
notes:
6060
keywords:
6161
- BREAKING CHANGE
62-
- 💥
62+
- 💥

.github/workflows/release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ env:
1515

1616
jobs:
1717
release:
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1919
if: startsWith(github.ref, 'refs/tags/')
2020
container:
21-
image: golang:1.19
21+
image: golang:1.23
2222
steps:
2323
- name: Check out a copy of the repo
2424
uses: actions/checkout@v3
@@ -37,12 +37,8 @@ jobs:
3737
- id: get_version
3838
uses: battila7/get-version-action@v2
3939

40-
- name: set vars to github
41-
run: |
42-
echo "APP_TAG=${{ steps.get_version.outputs.version-without-v }}" >> $GITHUB_ENV
43-
4440
- name: Generate changelog
45-
run: task changelog:tag --yes
41+
run: task changelog:tag --APP_TAG=${{ steps.get_version.outputs.version-without-v }} --yes
4642

4743
- name: Create Release
4844
if: ${{ !env.ACT }}
@@ -51,8 +47,8 @@ jobs:
5147
env:
5248
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
5349
with:
54-
tag_name: ${{ env.APP_TAG }}
55-
release_name: ${{ env.APP_TAG }}
50+
tag_name: ${{ steps.get_version.outputs.version-without-v }}
51+
release_name: ${{ steps.get_version.outputs.version-without-v }}
5652
draft: false
5753
prerelease: false
5854
body_path: ${{ env.TMP_CHANGELOG_FILENAME }}

0 commit comments

Comments
 (0)