-
-
Notifications
You must be signed in to change notification settings - Fork 37
43 lines (35 loc) · 1.08 KB
/
Copy pathupdate-flake.yml
File metadata and controls
43 lines (35 loc) · 1.08 KB
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
42
43
name: Update Flake Lock
on:
workflow_dispatch:
schedule:
# Run every Sunday at 00:00 UTC
- cron: '0 0 * * 0'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Setup Cachix
uses: cachix/cachix-action@v16
with:
name: kiriwalawren
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Update flake.lock
run: nix flake update
- name: Run checks with updated dependencies
run: nix flake check --all-systems
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update flake.lock"
title: "chore: update flake.lock"
body: |
Automated flake.lock update.
This PR updates all flake inputs to their latest versions.
branch: update-flake-lock
delete-branch: true