This repository has been archived on 2020-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
stack/drone-starlark/repos/export.star

7 lines
213 B
Plaintext
Raw Normal View History

2020-04-26 13:34:46 +00:00
load("@this//:secret-to-environment.star", "secretToEnvironment")
def export(secret):
return "export {toCaps}=${toCaps}".format(
toCaps = secretToEnvironment(secret), #secret.replace("-", "_").upper(),
)