Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidd6 authored Oct 15, 2024
1 parent 5d0b42a commit 18f7d56
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
formula: ${{matrix.formula}}
tag: ${{matrix.tag}}
revision: ${{matrix.revision}}
force: true
test-livecheck-formula:
runs-on: macos-latest
needs:
Expand All @@ -58,6 +59,7 @@ jobs:
tap: ${{github.repository}}
tap_url: ${{github.server_url}}/${{github.repository}}
livecheck: true
force: true
test-livecheck-tap:
runs-on: ubuntu-latest
needs:
Expand All @@ -77,3 +79,4 @@ jobs:
tap: ${{github.repository}}
tap_url: ${{github.server_url}}/${{github.repository}}
livecheck: true
force: true
9 changes: 1 addition & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,13 @@ inputs:
runs:
using: composite
steps:
- run: echo $PATH
shell: sh
- run: echo /home/linuxbrew/.linuxbrew/bin >> $GITHUB_PATH
if: ${{runner.os == "Linux"}}
shell: sh
- run: brew developer on
shell: sh
- run: brew update-reset
shell: sh
#- shell: sh
# run: |
# cd /home/linuxbrew/.linuxbrew/Homebrew
# git remote set-url origin https://github.com/dawidd6/brew
# git pull origin test
# git checkout test
- run: brew ruby $GITHUB_ACTION_PATH/main.rb
shell: sh
env:
Expand Down
2 changes: 2 additions & 0 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def read_brew(*args)
*("--tag=#{tag}" if is_git),
*("--revision=#{revision}" if is_git),
*('--force' unless force.false?),
*('--quiet' unless force.false?),
formula
else
# Support multiple formulae in input and change to full names if tap
Expand Down Expand Up @@ -157,6 +158,7 @@ def read_brew(*args)
*("--fork-org=#{org}" unless org.blank?),
*("--no-fork" unless no_fork.false?),
*('--force' unless force.false?),
*('--quiet' unless force.false?),
formula
rescue ErrorDuringExecution => e
# Continue execution on error, but save the exeception
Expand Down

0 comments on commit 18f7d56

Please sign in to comment.