2026-03-28 19:27:53 +00:00
|
|
|
name: Update flake inputs
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
schedule:
|
|
|
|
|
- cron: '0 4 * * *' # Daily at 4am UTC
|
|
|
|
|
workflow_dispatch: # Allow manual trigger from GitHub Actions tab
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
update:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
permissions:
|
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repo
|
2026-04-08 19:52:48 +01:00
|
|
|
uses: actions/checkout@v6
|
|
|
|
|
|
2026-03-28 19:27:53 +00:00
|
|
|
- name: Install Nix
|
2026-04-08 19:52:48 +01:00
|
|
|
uses: cachix/install-nix-action@v31
|
2026-03-28 19:27:53 +00:00
|
|
|
with:
|
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
|
extra_nix_config: |
|
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
|
|
|
|
|
|
- name: Update flake inputs
|
|
|
|
|
run: nix flake update
|
|
|
|
|
|
|
|
|
|
- name: Commit updated flake.lock
|
2026-04-08 19:52:48 +01:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v7
|
2026-03-28 19:27:53 +00:00
|
|
|
with:
|
|
|
|
|
commit_message: "flake: update inputs"
|
|
|
|
|
file_pattern: flake.lock
|
|
|
|
|
|