Skip to content

update-nix-fetchgit

update-nix-fetchgit #4

name: "update-nix-fetchgit"
on:
workflow_dispatch:
schedule:
- cron: "22 9 * * 0"
push:
branches:
- main
paths:
- ".github/workflows/update-nix-fetchgit.yaml"
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: workflow/nix-shell-action@v3
with:
packages: fd,update-nix-fetchgit
script: |
fd .nix --exec update-nix-fetchgit --only-commented
git diff --name-only origin/main origin/${GITHUB_HEAD_REF}