Bug: Global Variables values lost if last action SSH

Hello, i have set up 3 variables in a pipeline to set up the deployment version,
major & minor are not touched in this pipeline
patch is increased if is a change in the repository

All work ok , until i add a SSH action at the end of the pipeline, if Ii do this I lost the variables values

If i comment that last action the variables are ok

I run this pipeline manually