Skip to content

Commit db6790d

Browse files
authored
fix(release): actually fix release this time (#54)
## Description Thanks to @lucasrod16, this should fix the release inputs/outputs flow. Signed-off-by: razzle <[email protected]>
1 parent 5fc0d64 commit db6790d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/actions/bump-and-notes/action.yaml

+15-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@ inputs:
55
description: "The module to be released"
66
required: true
77

8+
outputs:
9+
new-version:
10+
description: "The new version of the module"
11+
value: ${{ steps.bump-version.outputs.new-version }}
12+
813
runs:
914
using: composite
1015
steps:
16+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
17+
with:
18+
go-version: 1.21.x
19+
cache-dependency-path: |
20+
internal/release/go.sum
21+
internal/release/go.mod
22+
1123
- name: bump module version
1224
env:
1325
MODULE: ${{ inputs.module }}
@@ -32,7 +44,9 @@ runs:
3244
NEW_VERSION: ${{ steps.bump-version.outputs.new-version }}
3345
MODULE: ${{ inputs.module }}
3446
run: |
35-
git cliff --config cliff.toml --unreleased --tag "$TAG" --include-path "$MODULE/**" | tee notes.md
47+
git cliff --config cliff.toml --unreleased --tag "$NEW_VERSION" --include-path "$MODULE/**" | tee notes.md
48+
echo "## $NEW_VERSION" >> "$GITHUB_STEP_SUMMARY"
49+
cat notes.md >> "$GITHUB_STEP_SUMMARY"
3650
shell: bash
3751

3852
- name: upload release notes

0 commit comments

Comments
 (0)