Skip to content

.github/workflows/update.yaml #91

.github/workflows/update.yaml

.github/workflows/update.yaml #91

Workflow file for this run

on:
workflow_dispatch:
schedule:
# every Monday at midnight
- cron: "0 0 * * 1"
jobs:
update:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: fregante/setup-git-user@v2
- uses: DeterminateSystems/nix-installer-action@v21
with:
extra-conf: |
accept-flake-config = true
commit-lock-file-summary = chore(deps): update flake.lock
- uses: cachix/cachix-action@v16
with:
name: wi2trier
authToken: ${{ secrets.CACHIX_TOKEN }}
- name: nix flake update
run: nix flake update --commit-lock-file
- name: update ollama
run: |
nix run .#nix-update -- ollama-bin
git commit -m "chore(deps): update ollama-bin" ./overlays/packages/ollama-bin.nix || echo "no changes to commit"
- name: nix flake check
run: nix flake check --show-trace --print-build-logs
- run: git push