Skip to content
Discussion options

You must be logged in to vote

I will reiterate that it's a bad idea.

However, you can do something like:

{{ $token := get . "github_token" }}
{{ if not $token }}
{{   $token = /* whatever */ }}
{{ end }}

[data]
github_token = {{ $token | quote }}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tessus
Comment options

@halostatue
Comment options

Answer selected by twpayne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants