2023-10-18 09:10:18 +00:00
|
|
|
name: update-flake-lock
|
|
|
|
on:
|
|
|
|
workflow_dispatch: # allows manual triggering
|
|
|
|
schedule:
|
|
|
|
- cron: "3 18 * * *"
|
|
|
|
jobs:
|
|
|
|
lockfile:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Nix
|
2024-03-11 05:15:32 +00:00
|
|
|
uses: cachix/install-nix-action@v26
|
2023-10-18 09:10:18 +00:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
2023-12-18 09:14:07 +00:00
|
|
|
substituters = https://cache.nixos.org/ https://attic.chir.rs/chir-rs/ https://hydra.chir.rs/
|
2023-12-18 12:19:57 +00:00
|
|
|
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg= chir-rs:rzK1Czm3RqBbZLnXYrLM6JyOhfr6Z/8lhACIPO/LNFQ=
|
2023-10-18 09:10:18 +00:00
|
|
|
experimental-features = nix-command flakes
|
|
|
|
- name: update flake lock
|
|
|
|
run: nix flake update
|
|
|
|
- name: run nix fmt
|
|
|
|
run: nix fmt
|
|
|
|
- name: Commit and push
|
2024-02-05 05:21:16 +00:00
|
|
|
uses: peter-evans/create-pull-request@v6
|
2023-10-18 09:10:18 +00:00
|
|
|
with:
|
|
|
|
commit-message: "Automatic Update"
|
|
|
|
title: Run automatic update
|
|
|
|
author: GitHub <noreply@github.com>
|