-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.2 KB
/
update-inputs.yaml
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
29
30
31
32
33
34
35
36
37
38
name: "Update Flake Dependencies"
on:
workflow_dispatch:
inputs:
inputs:
description: 'Flake inputs to update'
default: ''
jobs:
update-inputs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: "actions/checkout@v4"
- uses: "DeterminateSystems/nix-installer-action@main"
- uses: cachix/cachix-action@v14
with:
name: luke-channings
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Update flake
run: |
export NIXPKGS_ALLOW_UNFREE=1
export NIX_CONFIG="extra-substituters = true"
nix flake update --option accept-flake-config true ${{ inputs.inputs }}
git config --global user.name 'Luke Channings'
git config --global user.email '[email protected]'
git commit flake.lock -m "Update flake"
git push
- name: Build packages
run: |
export NIXPKGS_ALLOW_UNFREE=1
nix run --accept-flake-config --impure .#home-manager -- build --impure --flake .#luke
- name: Build dev shell
run: |
export NIXPKGS_ALLOW_UNFREE=1
nix develop --impure --accept-flake-config --accept-flake-config --build