Fix Replace
This commit is contained in:
@@ -14,10 +14,6 @@ on:
|
|||||||
description: 'Configuration'
|
description: 'Configuration'
|
||||||
default: 'Debug'
|
default: 'Debug'
|
||||||
type: string
|
type: string
|
||||||
replace:
|
|
||||||
description: 'Replace'
|
|
||||||
default: true
|
|
||||||
type: boolean
|
|
||||||
release:
|
release:
|
||||||
description: 'Release'
|
description: 'Release'
|
||||||
type: boolean
|
type: boolean
|
||||||
@@ -41,7 +37,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
msbuild-architecture: x64
|
msbuild-architecture: x64
|
||||||
- name: Replace
|
- name: Replace
|
||||||
if: ${{ inputs.replace }}
|
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
(gc "Plain Craft Launcher 2\Modules\Minecraft\ModLaunch.vb") -replace 'Dim ClientId As String = ""', 'Dim ClientId As String = "${{ secrets.CLIENT_ID }}"' | Out-File "Plain Craft Launcher 2\Modules\Minecraft\ModLaunch.vb"
|
(gc "Plain Craft Launcher 2\Modules\Minecraft\ModLaunch.vb") -replace 'Dim ClientId As String = ""', 'Dim ClientId As String = "${{ secrets.CLIENT_ID }}"' | Out-File "Plain Craft Launcher 2\Modules\Minecraft\ModLaunch.vb"
|
||||||
|
|||||||
Reference in New Issue
Block a user