[FEATURE] Reduce Frequency of Weekly Nix Flake Updates by github-actions[bot]
What would you like to be added?
Requesting a change regarding the automatic weekly Nix flake updates pushed by github-actions[bot]
The current workflow updates the flake.lock file weekly regardless of whether there have been any actual changes to the dependencies. This results in unnecessary rebuilds and commits.
Please consider modifying the workflow to only run nix flake update and update flake.lock when there have been actual changes to the flake inputs e.g., nixpkgs or other dependencies
Thanks!
How will it help?
This would help avoid unnecessary updates and rebuilds for users tracking the -git versions
It should only update when the dependencies actually update though? Also you would have to manually update your flake inputs for it to update wouldn't you?
It should only update when the dependencies actually update though? Also you would have to manually update your flake inputs for it to update wouldn't you?
yea if we update the flake.nix file manually, the workflow will run and update flake.lock as expected
But currently the issue is even if there are no actual updates to the flake.nix file, the workflow (.github/workflows/update-flake-inputs.yml) still runs every week based on the cron schedule (0 0 * * 0),
and the nix flake update command will execute unconditionally, It does not check if any actual changes have been made to the flake.nix file (or its inputs like caelestia-shell, nixpkgs, etc.) before running the nix flake update and just updates the flake.lock file
As a result, the workflow leads to updates and commits even when no changes have occurred
Edit: Submitted a PR https://github.com/caelestia-dots/shell/pull/895 for your review
That's the entire point of the workflow though. It's meant to automatically bump the flake inputs so they stay (relatively) up to date. The flake is meant to be consumed by other flakes as an input, when it updates, your version which you pull won't change unless you specifically update your flake's inputs. If you cloned the repo you can just disable the workflow if you don't want it.
That's the entire point of the workflow though. It's meant to automatically bump the flake inputs so they stay (relatively) up to date. The flake is meant to be consumed by other flakes as an input, when it updates, your version which you pull won't change unless you specifically update your flake's inputs. If you cloned the repo you can just disable the workflow if you don't want it.
ah ok understood, by design for the benefit of flakes consumption