-
Notifications
You must be signed in to change notification settings - Fork 6
27 lines (25 loc) · 898 Bytes
/
update.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
name: Update
on:
schedule:
- cron: '30 */2 * * *'
workflow_dispatch:
jobs:
shell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
github_access_token: '${{ secrets.GITHUB_TOKEN }}'
- name: Cachix
uses: cachix/cachix-action@v15
with:
name: nanoledger
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipPush: true
- run: nix flake update
- run: nix build -L --no-link .#devShells.$(nix eval --impure --expr "builtins.currentSystem").nanoledger
- run: nix eval --json ".#devShells.$(nix eval --impure --expr 'builtins.currentSystem').nanoledger.outPath" | sed 's/"\(.*\)"/\1/' | cachix push nanoledger
- uses: stefanzweifel/[email protected]
with:
commit_message: "Update flake dependencies"