-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
28 lines (27 loc) · 1.2 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Lix GHA Installer Action
description: Simple action to install Lix (the independent variant of the Nix package manager).
inputs:
github_access_token:
description: |
A github token that is added as an entry on extra-access-tokens in nix.conf.
By default, the `github.token` is configured. See https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
for a description of the default token's permissions.
extra_nix_config:
description: |
Additional configuration text to append to nix.conf. See https://docs.lix.systems/manual/lix/2.90/command-ref/conf-file.html
for a description of the config file format.
runs:
using: "composite"
steps:
- name: Cache installer
uses: actions/cache@v4
with:
path: /tmp/lix-installer
key: lix-installer-${{ runner.os }}-${{ runner.arch }}
- name: Install Lix
run: bash ${{ github.action_path }}/do-the-lix-thing
shell: bash
env:
INPUT_GITHUB_ACCESS_TOKEN: "${{inputs.github_access_token}}"
GITHUB_TOKEN: "${{github.token}}"
INPUT_EXTRA_CONFIG: "${{inputs.extra_nix_config}}"