Skip to content

Update flake.lock

Update flake.lock #2

name: Update flake.lock
# Weekly flake.lock bump. Creates a PR that can be reviewed and merged.
# Renovate also covers this, but a dedicated workflow is more reliable and
# visible in the Actions tab.
on:
schedule:
# 04:00 UTC every Monday.
- cron: "0 4 * * 1"
workflow_dispatch:
jobs:
update-lockfile:
name: nix flake update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Update flake.lock
run: nix flake update
- name: Verify the flake still evaluates
run: nix flake check --no-build
- name: Create PR
uses: peter-evans/create-pull-request@v8
with:
commit-message: "chore(flake): update flake.lock"
title: "chore(flake): weekly flake.lock update"
body: |
Automated weekly update of `flake.lock`.
- Generated by the `update-flake-lock` workflow.
- `nix flake check --no-build` passes on the updated lockfile.
branch: chore/update-flake-lock
labels: dependencies, nix