Skip to content

Conversation

@joshrotenberg
Copy link
Collaborator

Problem

The mislav/bump-homebrew-formula-action compares the formula version against the tag-name parameter to determine if an update is needed. With our tag format redisctl-v0.7.3, the action was comparing 0.7.2 (from formula) against redisctl-v0.7.3 and incorrectly determining that 0.7.2 is newer (string comparison issue with the prefix).

Solution

Add a step to extract just the version number from the full tag name:

  • redisctl-v0.7.30.7.3
  • Pass v0.7.3 to the action's tag-name parameter for proper version comparison
  • Keep the original tag (redisctl-v0.7.3) for the download-url since that's where the artifacts are

Testing

This will be tested on the next release. The workflow syntax is valid.

The mislav/bump-homebrew-formula-action compares formula version against
the tag-name to determine if an update is needed. With our tag format
'redisctl-v0.7.3', the action was comparing '0.7.2' (from formula) against
'redisctl-v0.7.3' and incorrectly determining that 0.7.2 is newer.

This fix extracts just the version number (e.g., '0.7.3') from the full
tag name and passes 'v0.7.3' to the action for proper comparison, while
keeping the original tag for the download URL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants