Adoption of when: true

I am attempting to make changes to repos that I maintain to account for the breaking change to the when attribute that was just announced.

But it seems like the new syntax is not supported yet.

I would have expected some period of overlap where both syntaxes are supported to enable a smooth migration. But it seems like we are supposed to wait until builds start failing before addressing the issue.

Is there any way to proactively adopt the new syntax?

1 Like

I think you may have made the same mistake I initially did, replacing when: always with when: true, but the announcement says that the new equivalent of when: always is to remove the when entirely.

See also my related post Scope of `when: always` config syntax change, trying to confirm which whens are affected by this change.

Okay, thanks for clearing that up.

It looks like this actually does not apply to the step attribute, but to workflow attribute.

1 Like