Skip to content

Commit

Permalink
Set default value of github_access_token to the automatically generat…
Browse files Browse the repository at this point in the history
…ed GitHub token
  • Loading branch information
rickynils committed Jun 23, 2023
1 parent c700904 commit 214a4f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ inputs:
you define are supported by the Nix version you're using.
github_access_token:
required: false
default: ${{ github.token }}
description: |
Configure Nix to use the specified token when fetching from GitHub. If
this setting is not specified, nix-quick-install-action will use the
content of the GITHUB_TOKEN environment variable instead (if set).
Configure Nix to use the specified token when fetching from GitHub.
nix_on_tmpfs:
required: true
Expand Down
3 changes: 0 additions & 3 deletions nix-quick-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ fi
if [[ -n "${GITHUB_ACCESS_TOKEN:-}" ]]; then
echo >>"$NIX_CONF_FILE" \
"access-tokens = github.com=$GITHUB_ACCESS_TOKEN"
elif [[ -n "${GITHUB_TOKEN:-}" ]]; then
echo >>"$NIX_CONF_FILE" \
"access-tokens = github.com=$GITHUB_TOKEN"
fi

# Populate the nix db
Expand Down

0 comments on commit 214a4f3

Please sign in to comment.