Skip to content

Commit

Permalink
Merge branch 'main' into ci-github-token
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 authored Dec 20, 2024
2 parents 6046851 + d5422c7 commit e38fe0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ jobs:
github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha
}} | bash
env:
# GH_TOKEN take precedence over GITHUB_TOKEN which is set by mise
GH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}

actions-timeline:
needs:
Expand Down
3 changes: 2 additions & 1 deletion wsl/home/.config/mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ BAT_PAGING = "never"
# gpg requires tty
# GitHub Actions doesn't have tty
# ref: https://github.com/actions/runner/issues/241
GPG_TTY = "{% if env.CI is undefined %}{{ exec(command='tty', cache_key='tty', cache_duration='1 week') }}{% endif %}"
# don't cache tty because it depends on shell session
GPG_TTY = "{% if env.CI is undefined %}{{ exec(command='tty') }}{% endif %}"

# set GITHUB_TOKEN to avoid rate limit while using mise
[env.GITHUB_TOKEN]
Expand Down

0 comments on commit e38fe0c

Please sign in to comment.