update-flake-lock #219
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@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 |