Skip to content

Commit 342e215

Browse files
fix(ci): use full tag name for Homebrew formula updates (#507)
The bump-homebrew-formula-action was failing with HTTP 404 because it was looking for release assets at tag `v0.7.2` when the actual release tag is `redisctl-v0.7.2`. Changes: - Pass the full tag directly instead of stripping and re-prefixing - Add explicit download-url to ensure correct asset resolution - Add condition to only run for `redisctl-v*` tags (skip redis-cloud, redis-enterprise, and redisctl-config releases) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent e339677 commit 342e215

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -285,26 +285,18 @@ jobs:
285285
needs:
286286
- plan
287287
- host
288-
if: ${{ always() && needs.host.result == 'success' }}
288+
# Only run for redisctl releases (not redis-cloud, redis-enterprise, or redisctl-config)
289+
if: ${{ always() && needs.host.result == 'success' && startsWith(needs.plan.outputs.tag, 'redisctl-v') }}
289290
runs-on: "ubuntu-22.04"
290291
steps:
291-
- name: Extract version from tag
292-
id: extract_version
293-
run: |
294-
TAG="${{ needs.plan.outputs.tag }}"
295-
# Remove 'redisctl-v' prefix to get version (e.g., redisctl-v0.7.1 -> 0.7.1)
296-
VERSION="${TAG#redisctl-v}"
297-
# Add 'v' prefix for Homebrew (e.g., 0.7.1 -> v0.7.1)
298-
echo "version=v${VERSION}" >> $GITHUB_OUTPUT
299-
echo "Extracted version: v${VERSION}"
300-
301292
- uses: mislav/[email protected]
302293
with:
303294
formula-name: redisctl
304295
formula-path: Formula/redisctl.rb
305296
base-branch: main
306-
tag-name: ${{ steps.extract_version.outputs.version }}
297+
tag-name: ${{ needs.plan.outputs.tag }}
307298
homebrew-tap: redis-developer/homebrew-tap
299+
download-url: "https://github.com/redis-developer/redisctl/releases/download/${{ needs.plan.outputs.tag }}/redisctl-x86_64-apple-darwin.tar.xz"
308300
env:
309301
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
310302

0 commit comments

Comments
 (0)