diff options
-rw-r--r-- | .github/actions/stasis_install/action.yml | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/.github/actions/stasis_install/action.yml b/.github/actions/stasis_install/action.yml index 27dd3cf..edd46b5 100644 --- a/.github/actions/stasis_install/action.yml +++ b/.github/actions/stasis_install/action.yml @@ -39,18 +39,15 @@ runs: repository: 'spacetelescope/stasis' path: ${{ github.workspace }}/stasis - - if: ${{ runner.os == "Linux" }} - name: Install STASIS dependencies + - name: Install STASIS dependencies run: | - sudo apt-get update - sudo apt-get install -y ca-certificates cmake libcurl4-openssl-dev libxml2-dev rsync - shell: bash - - - if: ${{ runner.os == "macOS" }} - name: Install STASIS dependencies - run: | - brew update - brew install curl cmake libxml2 rsync + if [[ "$RUNNER_OS" == "Linux" ]]; then + sudo apt-get update + sudo apt-get install -y ca-certificates cmake libcurl4-openssl-dev libxml2-dev rsync + elif [[ "$RUNNER_OS" == "macOS" ]]; then + brew update + brew install curl cmake libxml2 rsync + fi shell: bash - name: Install STASIS |