Skip to content

Commit

Permalink
Merge pull request #13 from dawidd6/composite
Browse files Browse the repository at this point in the history
switch to composite action
  • Loading branch information
dawidd6 authored Aug 28, 2020
2 parents 9463743 + d40f40e commit 552d0bb
Show file tree
Hide file tree
Showing 32 changed files with 24 additions and 2,285 deletions.
18 changes: 16 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,19 @@ inputs:
If formula and tap inputs are specified - check one or more formulae in that tap.
required: false
runs:
using: node12
main: main.js
using: composite
steps:
- run: brew update-reset
shell: sh
- run: brew ruby $GITHUB_ACTION_PATH/main.rb
shell: sh
env:
HOMEBREW_NO_ENV_FILTERING: 1
TOKEN: ${{inputs.token}}
MESSAGE: ${{inputs.message}}
TAP: ${{inputs.tap}}
FORMULA: ${{inputs.formula}}
TAG: ${{inputs.tag}}
REVISION: ${{inputs.revision}}
FORCE: ${{inputs.force}}
LIVECHECK: ${{inputs.livecheck}}
19 changes: 0 additions & 19 deletions main.js

This file was deleted.

16 changes: 8 additions & 8 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ def read_git(*args)
end

# Get inputs
token = ENV['INPUT_TOKEN']
message = ENV['INPUT_MESSAGE']
tap = ENV['INPUT_TAP']
formula = ENV['INPUT_FORMULA']
tag = ENV['INPUT_TAG']
revision = ENV['INPUT_REVISION']
force = ENV['INPUT_FORCE']
livecheck = ENV['INPUT_LIVECHECK']
token = ENV['TOKEN']
message = ENV['MESSAGE']
tap = ENV['TAP']
formula = ENV['FORMULA']
tag = ENV['TAG']
revision = ENV['REVISION']
force = ENV['FORCE']
livecheck = ENV['LIVECHECK']

# Set needed HOMEBREW environment variables
ENV['HOMEBREW_GITHUB_API_TOKEN'] = token
Expand Down
146 changes: 0 additions & 146 deletions node_modules/@actions/core/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions node_modules/@actions/core/lib/command.d.ts

This file was deleted.

92 changes: 0 additions & 92 deletions node_modules/@actions/core/lib/command.js

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/@actions/core/lib/command.js.map

This file was deleted.

Loading

0 comments on commit 552d0bb

Please sign in to comment.