mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-06-07 17:44:28 +00:00
add github_access_token option
I'm starting to see rate limit issues with GitHub Actions more frequently so I propose to make this option more readily available.
This commit is contained in:
parent
a590bb1bf6
commit
c04fcbc179
3 changed files with 19 additions and 9 deletions
13
action.yml
13
action.yml
|
@ -2,14 +2,16 @@ name: 'Install Nix'
|
|||
description: 'Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.'
|
||||
author: 'Domen Kožar'
|
||||
inputs:
|
||||
extra_nix_config:
|
||||
description: 'Gets appended to `/etc/nix/nix.conf` if passed.'
|
||||
github_access_token:
|
||||
description: 'Configure nix to pull from github using the given github token.'
|
||||
install_url:
|
||||
description: 'Installation URL that will contain a script to install Nix.'
|
||||
install_options:
|
||||
description: 'Additional installer flags passed to the installer script.'
|
||||
nix_path:
|
||||
description: 'Set NIX_PATH environment variable.'
|
||||
extra_nix_config:
|
||||
description: 'gets appended to `/etc/nix/nix.conf` if passed.'
|
||||
branding:
|
||||
color: 'blue'
|
||||
icon: 'sun'
|
||||
|
@ -19,7 +21,8 @@ runs:
|
|||
- run : ${{ github.action_path }}/install-nix.sh
|
||||
shell: bash
|
||||
env:
|
||||
INPUT_INSTALL_URL: ${{ inputs.install_url }}
|
||||
INPUT_INSTALL_OPTIONS: ${{ inputs.install_options }}
|
||||
INPUT_NIX_PATH: ${{ inputs.nix_path }}
|
||||
INPUT_EXTRA_NIX_CONFIG: ${{ inputs.extra_nix_config }}
|
||||
INPUT_GITHUB_ACCESS_TOKEN: ${{ inputs.github_access_token }}
|
||||
INPUT_INSTALL_OPTIONS: ${{ inputs.install_options }}
|
||||
INPUT_INSTALL_URL: ${{ inputs.install_url }}
|
||||
INPUT_NIX_PATH: ${{ inputs.nix_path }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue