From 60468514ce95202b9c0d7b706fcfcb7ece01c337 Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:19:40 +0900 Subject: [PATCH] ci(wsl/home/.config/mise/config.toml): pass through GITHUB_TOKEN in test --- wsl/home/.config/mise/config.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wsl/home/.config/mise/config.toml b/wsl/home/.config/mise/config.toml index 637811de..a1ddac61 100644 --- a/wsl/home/.config/mise/config.toml +++ b/wsl/home/.config/mise/config.toml @@ -13,7 +13,13 @@ GPG_TTY = "{% if env.CI is undefined %}{{ exec(command='tty', cache_key='tty', c # set GITHUB_TOKEN to avoid rate limit while using mise [env.GITHUB_TOKEN] -value = "{% if env.CI is undefined %}{{ exec(command='gh auth token', cache_key='github_token', cache_duration='1 day') }}{% endif %}" +value = """ +{% if env.CI is undefined %}\ + {{ exec(command='gh auth token', cache_key='github_token', cache_duration='1 day') }}\ +{% else %}\ + {{ env.GITHUB_TOKEN }}\ +{% endif %}\ +""" tools = true [tools]