diff --git a/.github/actions/install-openssl/action.yml b/.github/actions/install-openssl/action.yml index a6ed742f3..b2e4ff4b2 100644 --- a/.github/actions/install-openssl/action.yml +++ b/.github/actions/install-openssl/action.yml @@ -1,6 +1,10 @@ name: Install OpenSSL description: 'Install OpenSSL >= 3 if not already present.' +outputs: + OPENSSL_ROOT_DIR: + description: The location of the installed OpenSSL. + value: ${{ steps.determine-root.outputs.OPENSSL_ROOT_DIR }} runs: using: composite steps: @@ -18,7 +22,7 @@ runs: shell: bash run: | echo "OpenSSL Prefix: $(brew --prefix openssl@3)" - echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)" >> "$GITHUB_ENV" + echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)" >> $GITHUB_OUTPUT # The Windows runner has an older version of OpenSSL and needs to be upgraded. # Additionally, it seems to randomly be installed in OpenSSL-Win64 or OpenSSL depending on @@ -30,9 +34,9 @@ runs: run: | choco upgrade openssl --no-progress if [ -d "C:\Program Files\OpenSSL-Win64" ]; then - echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL-Win64" >> "$GITHUB_ENV" + echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL-Win64" >> $GITHUB_OUTPUT else - echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL" >> "$GITHUB_ENV" + echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL" >> $GITHUB_OUTPUT fi - name: Determine root