ci: add weekly flake.lock update workflow#491
Merged
Conversation
michalrus
reviewed
Mar 23, 2026
michalrus
reviewed
Mar 23, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an automated maintenance workflow to keep the repository’s Nix flake.lock up-to-date by running a weekly scheduled update and opening/updating a PR with the changes.
Changes:
- Introduces a scheduled GitHub Actions workflow that updates
flake.lockweekly. - Uses DeterminateSystems actions to install Nix (for portability) and create/update the PR for lockfile changes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
michalrus
requested changes
Mar 24, 2026
michalrus
reviewed
Mar 26, 2026
d36be23 to
5f3e76a
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
vladimirvolek
approved these changes
Apr 2, 2026
michalrus
approved these changes
Apr 3, 2026
Member
michalrus
left a comment
There was a problem hiding this comment.
LGTM! Unfortunately we have to merge it to test from main. I'll do that.
Member
|
And it worked! See the automatic: |
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.
Resolves #408
Summary
nix flake updateevery Sunday at 06:00 UTC and opens a PR with the updatedflake.lockRequired setup
A
FLAKE_UPDATE_GITHUB_TOKENrepository secret should be configured with a PAT (or GitHub App token) that hascontents:writeandpull-requests:writescopes on this repository.This is needed because pushes made with the default
GITHUB_TOKENdo not trigger other workflows (GitHub's recursive prevention). Without this token, the workflow still works — a PR is created — but CI won't run on it automatically. In that case, close and reopen the PR to trigger CI manually.Test plan
FLAKE_UPDATE_GITHUB_TOKENsecret to repository settingsflake.lockon Sunday 📆