Skip to content

Commit

Permalink
Install on Debian-ish and macOS, take 2 (#2)
Browse files Browse the repository at this point in the history
* Install on Debian-ish and macOS, take 2

No `if` in composite actions right now, so check OS in shell

* Update action.yml
  • Loading branch information
reitzig authored Jan 22, 2021
1 parent 9a58ed0 commit d6d9d26
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ runs:
using: composite

steps:
- if: runner.os == 'Linux'
run: |
sudo apt-add-repository --yes --no-update ppa:fish-shell/release-3
sudo apt-get update -qq
sudo apt-get install --yes fish
shell: bash

- if: runner.os == 'macOS'
run: brew install fish
- run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-add-repository --yes --no-update ppa:fish-shell/release-3
sudo apt-get update -qq
sudo apt-get install --yes fish
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install fish
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash

0 comments on commit d6d9d26

Please sign in to comment.