forked from nix-community/srvos
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.17 KB
/
update-flake-lock.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
29
30
31
32
33
34
35
36
37
38
39
40
41
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: "0 0 * * 1,4" # Run twice a week
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
accept-flake-config = true
experimental-features = nix-command flakes
- name: Eval flake
run: |
nix flake show
- name: setup
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
- name: Update flake
run: |
nix flake update --commit-lock-file
- name: Update dev flake
run: |
pushd dev/private
nix flake update --commit-lock-file
popd
./dev/update-private-narhash
git commit --amend --no-edit dev/private.narHash
- uses: peter-evans/create-pull-request@v7
with:
title: Update flake.lock files
branch: update-flake-lock
labels: |
merge-queue