#172
Fix: Export only required env vars in workflow downloads
When exporting a workflow as code, the .env.example file now includes only the environment variables for integrations actually used in the workflow, instead of all registered plugins.
- Updated
generateEnvExampleto accept workflow nodes and extract action IDs. - Replaced
getAllEnvVarswithgetEnvVarsForActionsto fetch environment variables specific to used integrations. - Added
getEnvVarsForActionsfunction to retrieve environment variables based on action IDs from the plugin registry.
Fixes #171
Activity
3Appreciate the contribution. Will take a look soon!
@BowTiedSwan is attempting to deploy a commit to the Vercel Labs Team on Vercel.
A member of the Team first needs to authorize it.