Store latestSha globally so that the error notification knows what we were trying to deploy