Hopefully a simple question. We have a number of actions in our process and some of them will be skipped according to channel. In our email template we have something like this:
#{each action in Octopus.Action}
<tr>
<td>#{action.Name}</td>
<td>#{if action.Package.NuGetPackageId}#{action.Package.NuGetPackageVersion}#{/if}</td>
<td>#{if action.TargetRoles}#{action.TargetRoles}#{/if}</td>
</tr>
#{/each}
The output is perfect when the action has a package that has been deployed, but for the skipped actions, if is displaying the raw text #{action.Package.NuGetPackageVersion}
rather than an empty cell.
Should I be trying something like this: #{if action.Package} or something else?