The Github Action for the Determinate Nix Installer
Go to file
Eric Crosson 5866c409ef Add default value for the the github-token input
Since you are likely to be rate-limited if you use this action
without a GitHub API token, default the action's `github-token` input
to the `token` from the `github` context[^1].

Closes #3

[^1]: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
2023-01-30 19:07:32 -06:00
.github/workflows More thorough testing 2023-01-13 12:18:14 -08:00
action.yml Add default value for the the github-token input 2023-01-30 19:07:32 -06:00
LICENSE Add LICENSE 2023-01-13 10:30:02 -08:00
README.md Add @main to uses statement for nix installer GHA 2023-01-17 12:01:54 -03:00

Nix Installer Action

You can use nix-installer as a Github action like so:

on:
  pull_request:
  push:
    branches: [main]

jobs:
  lints:
    name: Build
    runs-on: ubuntu-22.04
    steps:
    - uses: actions/checkout@v3
    - name: Install Nix
      uses: DeterminateSystems/nix-installer-action@main
      with:
        # Allow the installed Nix to make authenticated Github requests.
        # If you skip this, you will likely get rate limited.
        github-token: ${{ secrets.GITHUB_TOKEN }}
    - name: Run `nix build`
      run: nix build .

See .github/workflows/ci.yml for a full example.