Skip to content

Commit

Permalink
added brew tap to gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 14, 2024
1 parent 3f0f16c commit e79f386
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ jobs:
env:
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1
CARGO_PROFILE_RELEASE_LTO: true
bump-homebrew-formula:
runs-on: macos-14
timeout-minutes: 10
needs: [create-release]
continue-on-error: true
steps:
- name: Bump Homebrew formula
uses: dawidd6/action-homebrew-bump-formula@v3
with:
token: ${{ secrets.GH_BOT_TOKEN }}
formula: usage
tap: jdx/homebrew-tap

# push-to-registry:
# name: "Push Docker image to Docker Hub"
Expand Down
5 changes: 2 additions & 3 deletions examples/mise.usage.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -1182,9 +1182,8 @@ complete "tool@version" run=r#"
cur="{{words[CURRENT]}}"
case $cur in
*@*)
IFS='@' read -r -a parts <<< "$cur"
tool="${parts[0]}"
prefix="${parts[1]}"
tool="$(echo "$cur" | cut -d'@' -f1)"
prefix="$(echo "$cur" | cut -d'@' -f2)"

versions=$(mise ls-remote $tool $prefix | sed '1!G;h;$!d')

Expand Down

0 comments on commit e79f386

Please sign in to comment.