Skip to content

update-flake-lock

update-flake-lock #58

name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *' # runs an hour past midnight
jobs:
update-lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
trusted-public-keys = wires.cachix.org-1:7XQoG91Bh+Aj01mAJi77Ui5AYyM1uEyV0h1wOomqjpk= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://wires.cachix.org https://cache.nixos.org/
- uses: cachix/cachix-action@v15
with:
name: wires
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- run: nix flake update --commit-lock-file
- name: Test builds against new lock
run: |
nix build .#stable
nix build .#nightly
- name: Build Stable Template
working-directory: ./templates/stable
run: nix build .#neovim --override-input tolerable ../../.
- name: Build Nightly Template
working-directory: ./templates/nightly
run: nix build .#neovim --override-input tolerable ../../.
- name: Push changes
run: |
git push