From 8d4aceddea5a35bed480baa07bd3d821a46ec2f8 Mon Sep 17 00:00:00 2001 From: andreadellacorte Date: Wed, 20 May 2026 21:56:16 +0100 Subject: [PATCH] cache-warm: fail on Cachix 403 --- .github/workflows/cache-warm.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cache-warm.yml b/.github/workflows/cache-warm.yml index ceff506f..ea26632d 100644 --- a/.github/workflows/cache-warm.yml +++ b/.github/workflows/cache-warm.yml @@ -32,11 +32,12 @@ jobs: accept-flake-config = true experimental-features = nix-command flakes - - name: Push to rood-reverse cachix - uses: cachix/cachix-action@v15 - with: - name: rood-reverse - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - name: Build dev shell - run: nix build --print-out-paths .#devShells.${{ matrix.system }}.default + run: nix build --print-out-paths .#devShells.${{ matrix.system }}.default > "$RUNNER_TEMP/dev-shell-paths" + + - name: Push to rood-reverse cachix + env: + CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} + run: | + mapfile -t paths < "$RUNNER_TEMP/dev-shell-paths" + nix shell nixpkgs#cachix -c cachix push rood-reverse "${paths[@]}"