2022-02-27 23:10:09 +00:00
|
|
|
name: Setup Environment
|
|
|
|
inputs:
|
2022-10-29 20:58:44 +00:00
|
|
|
GITHUB_TOKEN:
|
|
|
|
required: true
|
2022-10-29 21:21:53 +00:00
|
|
|
description: "GitHub access token used to prevent GitHub's rate limit for unauthenticated requests"
|
2022-02-27 23:10:09 +00:00
|
|
|
CACHIX_SIGNING_KEY: # determines what node version to install
|
|
|
|
required: true
|
|
|
|
description: 'Cachix Signing Key'
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
2022-03-27 13:52:54 +00:00
|
|
|
|
2022-02-27 23:10:09 +00:00
|
|
|
- name: Installing Nix
|
2022-10-29 20:58:44 +00:00
|
|
|
uses: cachix/install-nix-action@v18
|
2022-02-27 23:10:09 +00:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
2022-10-29 20:58:44 +00:00
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ inputs.GITHUB_TOKEN }}
|
2022-02-27 23:10:09 +00:00
|
|
|
|
2022-10-29 20:58:44 +00:00
|
|
|
- uses: cachix/cachix-action@v12
|
2022-02-27 23:10:09 +00:00
|
|
|
with:
|
|
|
|
name: nixos-search
|
|
|
|
signingKey: '${{ inputs.CACHIX_SIGNING_KEY }}'
|
|
|
|
|
|
|
|
- name: Installing jq
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
nix-env -f '<nixpkgs>' -iA jq
|