-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (32 loc) · 1.34 KB
/
flake-updates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Flake updates
on:
schedule:
# * is a special character in YAML so you have to quote this string
# run this every Friday
- cron: '0 0 * * FRI'
workflow_dispatch:
inputs: {}
jobs:
flake-updater:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Nix
uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
substituters = https://pre-commit-hooks.cachix.org https://nix-community.cachix.org https://adomixaszvers.cachix.org https://cache.nixos.org/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= pre-commit-hooks.cachix.org-1:Pkk3Panw5AW24TOv6kz3PvLhlH8puAsJTBbOPmBo7Rc= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= adomixaszvers.cachix.org-1:r3/lrlbDE7o/Vjk/muEU2iLIiCEZMbC09ZqiwAs64so=
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v24
- uses: actions/checkout@v4
with:
ref: update_flake_lock_action
- name: Show inputs
run: 'nix flake metadata'
- name: Check evaluation
run: 'find -name "*.nix" -exec nix-instantiate --parse 1>/dev/null {} +'
- name: Check the flake
run: 'nix flake check'