Commit graph

4 commits

Author SHA1 Message Date
Matt Sturgeon
79b887f068 ci/update: refactor to produce a single lockfile commit
Refactors the flake update script to consolidate root and dev lockfile
updates into a single commit. Changes include:

- Captures and normalizes `nix flake update` output.
- Removes reliance on `--commit-lock-file` and `--amend`.
- Eliminates the need to track or compare HEAD commits manually.
- Only commit when flake.lock, flake/dev/flake.lock, or
  version-info.toml have changes.

(cherry picked from commit d269170e38)
2025-11-30 21:42:52 +00:00
Matt Sturgeon
8300ad59dd ci/update: build version-info with no-out-link
Avoid polluting the `result` symlink when building `version-info`.

(cherry picked from commit f02d566f4c)
2025-11-30 21:42:52 +00:00
Matt Sturgeon
30cc2dddc9 ci/update: always cd to the root of the flake
Allows running the script from a sub-directory, e.g.

    cd ci
    nix-build -A update
    result/bin/update

(cherry picked from commit 8147790da9)
2025-11-30 21:42:52 +00:00
Matt Sturgeon
2b2b1e6d8f ci: rename update-scriptsci
This changes how we think about this directory; it does not need to be
exclusively for scripts related to updates, but should be a place for
any scripts intended to be run by CI workflows.

This mindset should make it easier to develop and test the business
logic of workflows, without always needing to test "in production" on
the nixvim repo or a fork.
2025-06-15 21:23:58 +00:00
Renamed from update-scripts/update.nix (Browse further)