feat: use cachix nix-install-action

This commit is contained in:
Gerg-L 2025-08-16 09:30:02 -04:00
parent 9685a890ce
commit 21b30eafd2
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI

View file

@ -1,8 +1,8 @@
name: flake-update name: flake-update
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: '0 5 * * 0' - cron: '0 5 * * 0'
jobs: jobs:
lockfile: lockfile:
@ -11,11 +11,10 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4.2.2 uses: actions/checkout@v4.2.2
- name: Install Nix - name: Install Nix
uses: DeterminateSystems/nix-installer-action@v17 - uses: cachix/install-nix-action@v31
- name: Update flake lock - name: Update flake lock
run : | run : |
git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]" git config --local user.name "github-actions[bot]"
nix flake update --commit-lock-file nix flake update --commit-lock-file
git push origin HEAD:${{ github.ref_name }} git push origin HEAD:${{ github.ref_name }}