update-flake-lock #179
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@V27 | |
with: | |
# nix run in 2.20 seems broken: Exec format error | |
install_url: https://nixos.org/releases/nix/nix-2.19.4/install | |
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 | |
nix run .#update-dev-private-narHash | |
git commit --amend --no-edit dev/private.narHash | |
- uses: peter-evans/create-pull-request@v6 | |
with: | |
title: Update flake.lock files | |
branch: update-flake-lock | |
labels: | | |
merge-queue |