A reusable workflow for updating flake.lock
If you need a custom action, use DeterminateSystems/update-flake-lock.
Minimum example:
jobs:
call-nix-flake-updater:
uses: ishiy1993/nix-flake-updater/.github/workflows/nix-flake-updater.yml@v1
with:
base_branch: main
Other options:
jobs:
call-nix-flake-updater:
uses: ishiy1993/nix-flake-updater/.github/workflows/nix-flake-updater.yml@v1
with:
base_branch: main
pr_branch_prefix: 'bot/'
pr_title: 'Update flake.lock by nix-flake-updater'
reviewer: <your github id>
timezone: JST-9
- checkout by actions/checkout.
- install nix by cachix/install-nix-action.
nix flake update --commit-lock-file
.- create a PR by gh pr create.
If there are no updates, no PR will be created.
The commit and PR author is github-actions[bot]
.