Try Powershell instead of sed?

This commit is contained in:
Marquis Kurt 2019-12-23 12:26:26 -05:00
parent ba8183aad3
commit 1abf50f3a0
No known key found for this signature in database
GPG Key ID: 725636D259F5402D
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ jobs:
node-version: 10.x
- name: Modify config.json
run: |
sed -i "s#$(cat public/config.json | grep "location")/\"location\": \"desktop"#g" public/config.json;
((Get-Content -Path .\public\config,json -Raw) -replace '/\"location\"?: \"https?:\/\/([A-Za-z0-9.]+)\",/g','\"location\": \"desktop\",') | Set-Content -Path .\public\config.json
shell: powershell
- name: Install dependencies and build
run: |
npm install