chore(ci/nix): port nix related github actions

This commit is contained in:
Linus Ammon
2026-05-08 11:46:11 +02:00
parent 9475eb521e
commit 44d3465563
2 changed files with 46 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
name: cachix
on:
push:
branches:
- v5
workflow_run:
workflows: ["update flake"]
types:
- completed
branches:
- v5
workflow_dispatch:
jobs:
cache:
runs-on: ubuntu-latest
if: ${{ github.repository == 'noctalia-dev/noctalia-shell' }}
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v17
with:
name: "${{ secrets.CACHIX_CACHE_NAME }}"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix build .
+20
View File
@@ -0,0 +1,20 @@
name: update flake
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
if: ${{ github.repository == 'noctalia-dev/noctalia-shell' }}
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
- run: nix flake update
- uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "chore(flake): update flake.lock"