Skip to content

A reusable workflow for updating flake.lock

License

Notifications You must be signed in to change notification settings

ishiy1993/nix-flake-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-flake-updater

A reusable workflow for updating flake.lock

Note

If you need a custom action, use DeterminateSystems/update-flake-lock.

Usage

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

What nix-flake-updater does

  1. checkout by actions/checkout.
  2. install nix by cachix/install-nix-action.
  3. nix flake update --commit-lock-file.
  4. 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].

About

A reusable workflow for updating flake.lock

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages