Skip to content

Commit

Permalink
fix for runner os
Browse files Browse the repository at this point in the history
  • Loading branch information
alondhe committed Sep 8, 2023
1 parent 63c52d0 commit 3f2b8ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand Down

0 comments on commit 3f2b8ff

Please sign in to comment.