Skip to content

Commit 1da33c8

Browse files
author
Christopher-Marcel Böddecker
committed
fix(templates): unityProject parameter check
1 parent d53d41c commit 1da33c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/steps/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ parameters:
33

44
steps:
55
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
6-
- ${{ if parameters.unityProject }}:
6+
- ${{ if eq(parameters.unityProject, 'true') }}:
77
- bash: |
88
npm pack
99
tarball=$(npm list — depth 0 | sed "s/@/-/g; s/ .*/.tgz/g; 1q;")

templates/steps/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ parameters:
66
unityVersion: ''
77

88
steps:
9-
- ${{ if parameters.unityProject }}:
9+
- ${{ if if eq(parameters.unityProject, 'true') }}:
1010
- powershell: |
1111
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
1212
Install-Module UnitySetup -Scope CurrentUser -Force
@@ -55,5 +55,5 @@ steps:
5555
configuration: ${{ parameters.msBuildConfiguration }}
5656
maximumCpuCount: true
5757
msbuildArchitecture: x64
58-
${{ if parameters.unityProject }}:
58+
${{ if if eq(parameters.unityProject, 'true') }}:
5959
msbuildArgs: /p:UnityEditorAssembliesPath="$(Unity.Path)Editor/Data/Managed/"

0 commit comments

Comments
 (0)