#172

Fix: Export only required env vars in workflow downloads

OpenBowTiedSwanwants to merge intofrom

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 generateEnvExample to accept workflow nodes and extract action IDs.
  • Replaced getAllEnvVars with getEnvVarsForActions to fetch environment variables specific to used integrations.
  • Added getEnvVarsForActions function to retrieve environment variables based on action IDs from the plugin registry.

Fixes #171

Activity

3
vercel[bot]10mo ago

@BowTiedSwan is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

ctate10mo ago

Appreciate the contribution. Will take a look soon!