-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 1.36 KB
/
Copy pathmain.yaml
File metadata and controls
39 lines (37 loc) · 1.36 KB
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
33
34
35
36
37
38
name: "Update Flake Inputs"
on:
schedule:
- cron: '0 */2 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v17
with:
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.12.0pre20221014_3093bd3/install
- uses: actions/checkout@v3
with:
fetch-depth: 0 # flakes don't work on shallow clones
- name: git-setup
run: |
git config --global user.name 'Github Actions Are Bad'
git config --global user.email 'dockerpocalypse@kubernetes.com'
- name: update-flake-inputs
run: |
set -xeuo pipefail
nix flake lock --update-input filestash-src --commit-lock-file --commit-lockfile-summary 'flake.lock: update `inputs.filestash-src`'
- name: update-package-lock
run: |
set -xeuo pipefail
nix run .#filestash.passthru.update
git add ./dream2nix-packages/filestash/dream-lock.json
git commit -m "filestash: update dream-lock.json" || true # ignore error if nothing to commit
- name: build-and-check-flake
run: |
set -xeuo pipefail
nix flake check
nix build
- name: push
run: |
git push origin HEAD