-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
45 lines (33 loc) · 880 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 'install_brew_packages'
description: 'Install brew packages'
inputs:
packages:
description: 'Custom packages to install using brew'
required: true
update:
description: 'Update brew'
required: false
default: true
upgrade:
description: 'Upgrade already installed brew packages'
required: false
default: false
runs:
using: composite
steps:
- name: install_brew_packages
run: |
echo "::group::Install brew packages ${{ inputs.packages }}"
# Update brew repos
if [ "${{ inputs.update }}" = "true" ]; then
brew update
fi
# Install custom packages
brew install \
${{ inputs.packages }}
# Upgrade brew repos
if [ "${{ inputs.upgrade }}" = "true" ]; then
brew upgrade
fi
echo "::endgroup::"
shell: bash