Create Env File

flightstack/create-env-file@1.0.0 Step Verified

Write a .env file (or any KEY=VALUE file) from a structured entries map.

Add it to a pipeline

jobs:
  - id: create-env-file
    uses: flightstack/create-env-file@1.0.0
    inputs:
      entries: <keyValueMap>

Or drag it onto the canvas from the step palette in the visual editor. Pin an exact version for production pipelines.

Inputs

entries keyValueMap required
Map of environment variable name -> value to materialise.
outputPath string default .env
Relative path (from workingDirectory) where the file will be written.
workingDirectory string default .
Project sub-directory inside the repo.

Outputs

envPathartifact
Absolute path to the written env file.