Skip to content

Commit

Permalink
fix: the way in which the releaser workflow finds version suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Dec 20, 2024
1 parent 74dc9cb commit 5e34c98
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ jobs:
root="$(dirname "$root")"
done
echo "version=$version" | tee -a $GITHUB_OUTPUT
echo "tag=${prefix}${version}" | tee -a $GITHUB_OUTPUT
echo "suffix=${version#*[-+]}" | tee -a $GITHUB_OUTPUT
tag="${prefix}${version}"
echo "tag=$tag" | tee -a $GITHUB_OUTPUT
suffix="${version#*[-+]}"
suffix="${suffix#"$version"}"
echo "suffix=$suffix" | tee -a $GITHUB_OUTPUT
- id: latest
if: steps.version.outputs.version != ''
name: Determine latest version
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [1.0.17] - 2024-12-06
### Fixed
- the releaser workflow was not setting the suffix correctly

## [1.0.16] - 2024-12-05
### Added
- a `cgo` job specific configuration variable which disables cgo in the go-test workflow
Expand Down

0 comments on commit 5e34c98

Please sign in to comment.