Skip to content

Commit 0ca27f6

Browse files
committed
Add GitHub workflow to update flake inputs
1 parent e4be098 commit 0ca27f6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Update flake inputs
2+
3+
on:
4+
schedule:
5+
- cron: '4 4 * * 1'
6+
7+
jobs:
8+
nix-flake-update:
9+
name: Update flake inputs
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout the repo
13+
uses: actions/checkout@v4
14+
15+
- name: Install nix
16+
uses: cachix/install-nix-action@v12
17+
with:
18+
nix_path: nixpkgs=channel:nixos-unstable
19+
- run: nix --extra-experimental-features nix-command --extra-experimental-features flakes build '.#static'
20+
21+
- run: nix flake update --commit-lock-file
22+
23+
- uses: peter-evans/create-pull-request@v3
24+
with:
25+
branch: bot/update
26+
delete-branch: true
27+
title: Update flake inputs

0 commit comments

Comments
 (0)