e3ade32b1a
Co-authored-by: Yannik Sander <me@ysndr.de>
29 lines
781 B
YAML
29 lines
781 B
YAML
name: Setup Environment
|
|
inputs:
|
|
GITHUB_TOKEN:
|
|
required: true
|
|
description: 'GitHub access token used to prevent GitHub's rate limit for unauthenticated requests'
|
|
CACHIX_SIGNING_KEY: # determines what node version to install
|
|
required: true
|
|
description: 'Cachix Signing Key'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
|
|
- name: Installing Nix
|
|
uses: cachix/install-nix-action@v18
|
|
with:
|
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
|
extra_nix_config: |
|
|
access-tokens = github.com=${{ inputs.GITHUB_TOKEN }}
|
|
|
|
- uses: cachix/cachix-action@v12
|
|
with:
|
|
name: nixos-search
|
|
signingKey: '${{ inputs.CACHIX_SIGNING_KEY }}'
|
|
|
|
- name: Installing jq
|
|
shell: bash
|
|
run: |
|
|
nix-env -f '<nixpkgs>' -iA jq
|