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

Problem with environment values used in yaml configuration. #1232

Open
lukaszspaczynski opened this issue Dec 5, 2023 · 0 comments
Open

Comments

@lukaszspaczynski
Copy link

lukaszspaczynski commented Dec 5, 2023

Script.sh

ENV_VAL1="VAL_1"
ENV_VAL2="VAL_2"

export ENV_VAL1
export ENV_VAL2

sourcery --config sourcery.yml

sourcery.yml

configurations:
  - sources:
      - ./
    templates:
      - ./template.stencil
    output:
     "./${ENV_VAL1}/${ENV_VAL2}/Generated.swift"

The file will be saved at "./VAL_1/${ENV_VAL2}/Generated.swift"
Only the first occurrence of env value was replaced.

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

1 participant