From 3f2b8ff1df48d31182b007cdf194e0860f9a4c5a Mon Sep 17 00:00:00 2001 From: alondhe Date: Thu, 7 Sep 2023 21:58:48 -0700 Subject: [PATCH] fix for runner os --- .github/workflows/default.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 70817f6..a263e0c 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -16,20 +16,20 @@ jobs: - name: Create certs folder run: mkdir -p ./certs - name: Replace HTTP_TYPE if https (Linux) - if: matrix.httpType == 'https' && matrix.os == 'Linux' + if: matrix.httpType == 'https' && runner.os == 'Linux' run: sed -i 's/HTTP_TYPE=\"http\"/HTTP_TYPE=\"https\"/g' .env - name: Replace HTTP_TYPE if https (Mac) - if: matrix.httpType == 'https' && matrix.os == 'macOS' + if: matrix.httpType == 'https' && runner.os == 'macOS' run: sed -i '' 's/HTTP_TYPE=\"http\"/HTTP_TYPE=\"https\"/g' .env - name: Generate certificates for next step - if: matrix.httpType == 'https' && matrix.os == 'Linux' + if: matrix.httpType == 'https' && runner.os == 'Linux' uses: kofemann/action-create-certificate@v0.0.4 with: hostcert: 'hostcert.pem' hostkey: 'hostkey.pem' cachain: 'ca-chain.pem' - name: Use generated certificates - if: matrix.httpType == 'https' && matrix.os == 'Linux' + if: matrix.httpType == 'https' && runner.os == 'Linux' run: | mv hostcert.pem ./certs/broadsea.crt mv hostkey.pem ./certs/broadsea.key