Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to keep the workflow environment variables when updating? #166

Closed
Nauxscript opened this issue Dec 26, 2022 · 4 comments

Comments

@Nauxscript
Copy link

Setup info

  • Workflow name: OneUpdater
  • Alfred version: 4
  • macOS version: 12.6
  • Architecture: (Intel or Apple Silicon) Apple M1 pro

Description of issue

hey, thanks for your workflows, its amzing and helpful!

I had made a workflow and use the OneUpdater workflow to implement auto-update. but i found that every time the workflow update, the workflow environment variables will be covered and my workflow have a custom variable set by user, so when user updated the workflow, the variable they set is gone.

Is there any way to keep the workflow environment variables when updating?

@vitorgalvao
Copy link
Owner

If the variable is being overwritten, it’s because when the workflow opens to be updated, the user is unticking this checkbox on the bottom left:

image

Leave it ticked and the variables will be preserved.

@Nauxscript
Copy link
Author

Thank you for your reply! I will try it.

@Nauxscript
Copy link
Author

hey, thank for your previous answer.

I have tried the way you mentioned before, but it doesn't seem to work.after ticking Migrate my workflow customisations, the local environment variables still being overwritten.

image

@vitorgalvao
Copy link
Owner

The variable needs to exist in the first place. If you don’t want the value to be exported, tick the checkbox. This isn’t related to OneUpdater.

In Alfred 5 you should be using Workflow Configuration instead of Workflow Environment Variables for things users are meant to change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants