.github/workflows/update.yaml #91
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |