Skip to content

Commit

Permalink
ci(wsl/home/.config/mise/config.toml): pass through GITHUB_TOKEN in test
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 committed Dec 20, 2024
1 parent b53f8b6 commit 6046851
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wsl/home/.config/mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6046851

Please sign in to comment.