Skip to content

Commit

Permalink
bump homebrew on macos release
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-f1sh committed Dec 6, 2022
1 parent fa8a095 commit 23d9515
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,19 @@ jobs:
files: ${{ steps.package.outputs.PKG_PATH }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Bump Homebrew formula
uses: mislav/bump-homebrew-formula-action@v2
if: steps.is-release.outputs.IS_RELEASE && startsWith(matrix.job.os, 'macos')
with:
formula-name: cyme
formula-path: Formula/cyme.rb
homebrew-tap: tuna-f1sh/homebrew-taps
download-url: https://github.com/tuna-f1sh/cyme/releases/download/v${{ env.PROJECT_VERSION}}/${{ steps.package.outputs.PKG_NAME }}
commit-message: |
{{formulaName}} {{version}}
Created by https://github.com/mislav/bump-homebrew-formula-action
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Deploy release to homebrew
name: Manually deploy release to homebrew

# on: [release]
on:
workflow_dispatch:
inputs:
Expand All @@ -13,18 +12,13 @@ jobs:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
# - name: Extract version
# id: extract-version
# run: |
# printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- uses: mislav/bump-homebrew-formula-action@v2
if: "!contains(github.ref, '-')" # skip prereleases
with:
formula-name: cyme
formula-path: Formula/cyme.rb
homebrew-tap: tuna-f1sh/homebrew-taps
tag-name: ${{ github.event.inputs.tag-name }}
# download-url: https://github.com/tuna-f1sh/cyme/releases/download/${{ steps.extract-version.outputs.tag-name }}/cyme-v${{ steps.extract-version.outputs.tag-name }}-x86_64-apple-darwin.tar.gz
download-url: https://github.com/tuna-f1sh/cyme/releases/download/${{ github.event.inputs.tag-name }}/cyme-${{ github.event.inputs.tag-name }}-x86_64-apple-darwin.tar.gz
commit-message: |
{{formulaName}} {{version}}
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ struct Args {
#[arg(long, value_enum, default_value_t = Default::default())]
group_devices: display::Group,

/// Hide empty buses when printing tree; those with no devices
/// Hide empty buses when printing tree; those with no devices. When listing will hide Linux root_hubs
// these are a bit confusing, could make value enum with hide_empty, hide...
#[arg(long, default_value_t = false)]
hide_buses: bool,

Expand Down

0 comments on commit 23d9515

Please sign in to comment.