Skip to content

Commit

Permalink
Merge pull request #272 from lets-cli/fix-goreleaser-dry-run
Browse files Browse the repository at this point in the history
Fix dry run goreleaser
  • Loading branch information
kindermax authored Jan 28, 2025
2 parents 1899eae + 33b0255 commit aa29d35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
with:
go-version: 1.23.x
- name: Run GoReleaser (dry run)
env:
PACKAGE_NAME: github.com/lets-cli/lets
GOLANG_CROSS_VERSION: v1.23
run: |
docker run \
--rm \
Expand Down
2 changes: 1 addition & 1 deletion lets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ commands:
lets release 1.0.0 -m "Release 1.0.0"
lets release 1.0.0-rc1 -m "Prerelease 1.0.0-rc1"
cmd: |
if [[ -z "$(grep "\[${LETSOPT_VERSION}\]" docs/docs/changelog.md)" ]]; then
if [[ "${LETSOPT_VERSION}" != *-rc* ]] && [[ -z "$(grep "\[${LETSOPT_VERSION}\]" docs/docs/changelog.md)" ]]; then
echo "Version ${LETSOPT_VERSION} not found in changelog. Update docs/docs/changelog.md and try again."
exit 1
fi
Expand Down

0 comments on commit aa29d35

Please sign in to comment.