Skip to content

Commit 747bcdb

Browse files
fix(release): improve Homebrew formula auto-update (#433)
- Remove stale root CHANGELOG.md (individual crate changelogs are maintained by release-plz) - Add Changelogs section to README with links to all crate changelogs - Fix Homebrew workflow to extract version from tag (redisctl-v0.6.6 -> v0.6.6) - Prevents string comparison bug where '0.6.2' > 'redisctl-v0.6.6' alphabetically - Ensures Homebrew formula updates correctly on future releases
1 parent 38d425f commit 747bcdb

File tree

3 files changed

+21
-70
lines changed

3 files changed

+21
-70
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,22 @@ jobs:
284284
needs: [plan, host]
285285
if: ${{ needs.plan.outputs.publishing == 'true' }}
286286
steps:
287+
- name: Extract version from tag
288+
id: extract_version
289+
run: |
290+
TAG="${{ github.ref_name }}"
291+
# Strip 'redisctl-v' prefix to get version number (e.g., redisctl-v0.6.6 -> 0.6.6)
292+
VERSION="${TAG#redisctl-v}"
293+
# Add 'v' prefix for Homebrew (e.g., 0.6.6 -> v0.6.6)
294+
echo "version=v${VERSION}" >> $GITHUB_OUTPUT
295+
echo "Extracted version: v${VERSION}"
296+
287297
- uses: mislav/[email protected]
288298
with:
289299
formula-name: redisctl
290300
formula-path: Formula/redisctl.rb
291301
base-branch: main
292-
tag-name: ${{ github.ref_name }}
302+
tag-name: ${{ steps.extract_version.outputs.version }}
293303
homebrew-tap: joshrotenberg/homebrew-brew
294304
env:
295305
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

CHANGELOG.md

Lines changed: 0 additions & 69 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,16 @@ redisctl enterprise cluster get -o yaml
421421

422422
---
423423

424+
## Changelogs
425+
426+
Individual crate changelogs:
427+
- [redisctl CLI](crates/redisctl/CHANGELOG.md) - Command-line interface
428+
- [redis-cloud](crates/redis-cloud/CHANGELOG.md) - Cloud API client library
429+
- [redis-enterprise](crates/redis-enterprise/CHANGELOG.md) - Enterprise API client library
430+
- [redisctl-config](crates/redisctl-config/CHANGELOG.md) - Configuration management library
431+
432+
---
433+
424434
## Contributing
425435

426436
Contributions welcome! See our [Contributing Guide](https://joshrotenberg.github.io/redisctl/developer/contributing.html).

0 commit comments

Comments
 (0)