Action isSkipped seems to always be false

Hello,
I was trying to setup an email notification when the deployment is finished with the following template:

The deployment included the following actions:

    #{each action in Octopus.Action} #{unless ation.IsSkipped}
  • #{action.Name} #{if action.Package.NuGetPackageId}— #{action.Package.NuGetPackageId} version #{action.Package.NuGetPackageVersion}#{/if}
  • #{/unless} #{/each}

However, I often only activate a few actions (Deploy > Advanced > Skip) but the email still comes in with every actions.
Am I missing something?

Thanks in advance

Hi,

Thanks for getting in touch! It looks like there is a typo in your second line.

#{unless ation.IsSkipped}
Should be:
#{unless action.IsSkipped}

We put this into our VM and tested it with the fixed variable and it looked to work fine. :slight_smile:

Let me know if this fixes the issue.

Regards,
Daniel

Works like a charm, stupid typo :slight_smile:

Thank you!

Hi,

No worries at all! I’m glad its working for you now.

Please don’t hesitate to get in touch if you run into any further issues or have any questions.

Regards,
Daniel