-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (32 loc) · 992 Bytes
/
update_deps.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
33
name: Update deps
on:
schedule:
- cron: '0 6 * * 0'
jobs:
build:
name: Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Update ca-certs
run: mkdir -p /etc/ssl/certs/ ; ln -s $NIX_SSL_CERT_FILE /etc/ssl/certs/
- uses: cachix/cachix-action@v12
with:
name: fiksn
signingKey: '${{ secrets.CACHIX_KEY }}'
- name: Update deps
run: nix flake update
- name: Check
run: nix flake check
- name: Push to Cachix
run: nix build --json | jq -r '.[].outputs | to_entries[].value' | cachix push fiksn
- name: Push to git
run: |
git config --global user.name 'Gregor Pogacnik'
git config --global user.email '[email protected]'
git commit -am "[Automatic] Bump dependencies"
git push