Try Powershell instead of sed?
This commit is contained in:
parent
ba8183aad3
commit
1abf50f3a0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue