mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-06-07 17:44:28 +00:00
Fix rate-limits by using github.token by default
Turns out there is a default github token we can use to talk to github and avoid the rate limit issues.
This commit is contained in:
parent
25d64bbf11
commit
a4b8aaf5a2
2 changed files with 4 additions and 1 deletions
|
@ -22,8 +22,10 @@ add_config "max-jobs = auto"
|
|||
# Allow binary caches for user
|
||||
add_config "trusted-users = root $USER"
|
||||
# Add github access token
|
||||
if [[ $INPUT_GITHUB_ACCESS_TOKEN != "" ]]; then
|
||||
if [[ -n "${INPUT_GITHUB_ACCESS_TOKEN:-}" ]]; then
|
||||
add_config "access-tokens = github.com=$INPUT_GITHUB_ACCESS_TOKEN"
|
||||
elif [[ -n "${GITHUB_TOKEN:-}" ]]; then
|
||||
add_config "access-tokens = github.com=$GITHUB_TOKEN"
|
||||
fi
|
||||
# Append extra nix configuration if provided
|
||||
if [[ $INPUT_EXTRA_NIX_CONFIG != "" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue