Is There a Way to Sync Steps Based on a Custom Component to its New Version After an Update?

This topic was automatically generated from Slack. You can find the original thread here.

When I’ve created a custom component for “my actions” and I bump the version number to publish an update, isn’t there a way to sync steps based on that action to the new version?

We do a search & replace in the repo (through VS Code).

But that only works if your repo is backed by git.

But yeah, I agree that it would be a great UX to offer users to upgrade all the workflows when publishing a new version (which is usually the very next step everyone wants to do, unless they want to test first).

yea right now you have to manually update each instance of that action from the builder. You should see an Update button in the UI on that step, do you?

I had been looking for it – I see it now, but it hadn’t been appearing when I was working on it yesterday. I perhaps was overly optimistic as to how quickly it would appear since I was actually pushing my update from a step on the same workflow that I had other steps I wanted to pull to – multiple steps in the same flow based on the same custom action. I didn’t try reloading after pushing the new version.

In theory you shouldn’t have to reload the page, and the Update prompt should show up right away, so if it’s not that’s a bug

To confirm, are you running pd publish from the CLI for an action that’s in your workflow? And Update isn’t showing up until you refresh the page?

nope – I’m right clicking the step and saying “publish to my actions”

Oh gotcha. And so do you have another instance of that same action in the same workflow?

yeah

Ah okay, got it

if that’s expected to work, I’ll pay closer attention the next time I’m working with that action and see if I can confirm the behavior

Yea in theory the UI should prompt you immediately, but totally possible there’s a bug there

I think there’s a bug there

Had to refresh the page to see the update button