aux-search/.github/actions/common-setup/action.yml
Naïm Favier 218c6dc78a
.github: pin nix 2.13 (#630)
2.14 has a bug related to profile locations that breaks nix-env, which
in turn breaks cachix. Pin to 2.13 for now.

More info at https://github.com/NixOS/nixpkgs/pull/218858#issuecomment-1448758169
2023-02-28 21:55:43 +01:00

30 lines
852 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:
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
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