Update flake #48
This file contains 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
name: "Update flake" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC, needs to happen before 3 am CET and CEST | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Install Nix" | |
uses: cachix/install-nix-action@v30 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: "accept-flake-config = true" | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: juanibiapina | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: "Update flake" | |
run: "nix flake update --accept-flake-config" | |
- name: "Build mini configuration" | |
run: "nix build --accept-flake-config .#nixosConfigurations.mini.config.system.build.toplevel" | |
- name: "Build desktop configuration" | |
run: "nix build --accept-flake-config .#nixosConfigurations.desktop.config.system.build.toplevel" | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "auto: Update flake" |