functions in blueprints i.e. replace() and lower()
Hi
We would like to run string operators like replace() and lower() on blueprint inputs before they are added to a stack or environment variables etc.
This doesn’t appear to be possible currently.
- Workaround
- No
- Problem
Log in to comment and vote
Comments1
SpaceliftUser
Sep 17, 2024
Hello @Jonathan Østrup! This is already available but we forgot to document it. The documentation will go live tomorrow (18th Sept), but you can already see it here: https://github.com/spacelift-io/user-documentation/pull/628
Basically, you can do this: ${{ “hello”.replace(“he”, “we”) }} or ${{ mystring.lowerAscii() }}