Update flake.lock on a weekly schedule - #20
Open
tashian wants to merge 1 commit into
Open
Conversation
The lock rotted for two years unnoticed (#19) because build.yml only exercises the live channels via NIX_PATH and README users override the lock with follows. This workflow refreshes the pin every Monday, but pushes only after nix flake show and a package build prove the new lock works — a bad nixpkgs bump fails the run instead of landing on main. It reuses the NUR_PAT push and step-ci SSH signing plumbing from the test workflows, and the direct-push pattern goreleaser version bumps already use.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #19: the flake lock could rot for years without any signal, since
build.ymlonly exercises the live channels viaNIX_PATHand README users override the lock withfollows. This adds a scheduled workflow (Mondays 07:00 UTC, plusworkflow_dispatch) that runsnix flake updateand pushes the refreshed lock straight to main as a signed step-ci commit — the same direct-push pattern the goreleaser version bumps use, so no weekly PR to review. The push is gated:nix flake show(which forces evaluation of every package attribute, the exact thing a stale lock breaks) and anix build .#step-agentmust pass with the new lock first, so a bad nixpkgs bump fails the run instead of landing. It reuses the existingNUR_PATandSTEP_TRAVIS_CI_GH_*signing secrets from the test workflows.Validated with actionlint and zizmor locally (clean with the repo config); the workflow itself can only run post-merge — worth a
workflow_dispatchtrigger run once it lands.