mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-25 01:48:04 +00:00
a4b8aaf5a2
Turns out there is a default github token we can use to talk to github and avoid the rate limit issues.
29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
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.'
|
|
branding:
|
|
color: 'blue'
|
|
icon: 'sun'
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- run : ${{ github.action_path }}/install-nix.sh
|
|
shell: bash
|
|
env:
|
|
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 }}
|
|
GITHUB_TOKEN: ${{ github.token }}
|