aux-search/.github/actions/common-setup/action.yml
Rok Garbas 850cdf4c3b
ci: jq is already part of ci environment (#767)
* ci: jq is already part of ci environment

* ci: add --accept-flake-config flag to actually use the binary cache from flake.nix
2024-05-02 17:01:00 +02:00

24 lines
685 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@v20
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 }}'