From 538af153f550db9fe07de7cd8b330ecdbb0fd825 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Fri, 24 May 2024 22:13:15 -0400 Subject: [PATCH] Use cached homebrew nginx installer --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e0f1efa..e1d01d3 100644 --- a/action.yml +++ b/action.yml @@ -62,13 +62,17 @@ runs: echo "log_dir=/var/log/nginx" >> $GITHUB_OUTPUT echo "html_dir=$nginx_prefix/html" >> $GITHUB_OUTPUT + - name: Install NGINX with Homebrew (macOS) + uses: tecolicom/actions-use-homebrew-tools@v1 + if: runner.os == 'macOS' + with: { tools: 'nginx' } + - name: Install NGINX (macOS) id: init_macos if: runner.os == 'macOS' shell: bash run: | echo "Init NGINX on ${{runner.os}} ${{runner.arch}} ${{runner.environment}} runner" - brew install nginx brew services list | grep nginx NGINX_BIN=$(which nginx) nginx_info="$(sudo "$NGINX_BIN" -V 2>&1)"