-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
properly convert env interactions into context
This input: ```yaml {% set a = environ["a"] %} {% set b = environ.get("b", "0") %} package: name: abc version: 0 ``` on `main` emits this recipe that needs manual correction: ```yaml schema_version: 1 context: a: "\"env.get(\"a\")\"" b: "\"environ | get(\"b\", \"0\")\"" package: name: abc version: 0 ``` but after this PR, it will instead emit: ```yaml schema_version: 1 context: a: ${{env.get("a")}} b: ${{env.get("b", default="0")}} package: name: abc version: 0 ``` which does not need any further editing.
- Loading branch information
1 parent
b02a878
commit 42414ba
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters