Skip to content

update-nix-fetchgit #10

update-nix-fetchgit

update-nix-fetchgit #10

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 || true
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: Update fetchgit* refs
title: 'Update fetchgit* refs'
draft: false
branch: chore/update-nix-fetch-git
delete-branch: true