Skip to content

Commit

Permalink
fix(release): actually fix release this time (#54)
Browse files Browse the repository at this point in the history
## Description

Thanks to @lucasrod16, this should fix the release inputs/outputs flow.

Signed-off-by: razzle <[email protected]>
  • Loading branch information
Noxsios authored Mar 29, 2024
1 parent 5fc0d64 commit db6790d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/actions/bump-and-notes/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@ inputs:
description: "The module to be released"
required: true

outputs:
new-version:
description: "The new version of the module"
value: ${{ steps.bump-version.outputs.new-version }}

runs:
using: composite
steps:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: 1.21.x
cache-dependency-path: |
internal/release/go.sum
internal/release/go.mod
- name: bump module version
env:
MODULE: ${{ inputs.module }}
Expand All @@ -32,7 +44,9 @@ runs:
NEW_VERSION: ${{ steps.bump-version.outputs.new-version }}
MODULE: ${{ inputs.module }}
run: |
git cliff --config cliff.toml --unreleased --tag "$TAG" --include-path "$MODULE/**" | tee notes.md
git cliff --config cliff.toml --unreleased --tag "$NEW_VERSION" --include-path "$MODULE/**" | tee notes.md
echo "## $NEW_VERSION" >> "$GITHUB_STEP_SUMMARY"
cat notes.md >> "$GITHUB_STEP_SUMMARY"
shell: bash

- name: upload release notes
Expand Down

0 comments on commit db6790d

Please sign in to comment.