mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2024-12-23 05:22:23 +01:00
861 B
861 B
update-flake-lock
This is a GitHub Action that will update your flake.lock file whenever it is run.
NOTE: We hardcode the
install_url
to a relatively recentnixUnstable
(nix-2.5pre20211015_130284b
currently). If you need a newer version that includes a new feature or important bug fix, feel free to file an issue or send a PR bumping theinstall_url
inside theaction.yml
!
Example
An example GitHub Action workflow using this action would look like the following:
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * *' # runs daily at 00:00
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main