wip: add echo output if no cache hit
All checks were successful
Flake checks / Check (pull_request) Successful in 1m38s

This commit is contained in:
teutat3s 2023-12-13 00:33:21 +01:00
parent 4a9fa26d02
commit b62c2a3db4
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -25,6 +25,7 @@ jobs:
echo "hash=$(md5sum flake.lock | awk '{print $1}')" >> $GITHUB_OUTPUT
- name: Restore and cache Nix store
uses: https://github.com/nix-community/cache-nix-action@v4
id: nix-store-cache
with:
key: cache-x86_64-linux-nix-store-${{ steps.flake-lock-hash.outputs.hash }}
restore-keys: |
@ -37,6 +38,9 @@ jobs:
purge-key: cache-x86_64-linux-nix-store-
purge-created: true
purge-created-max-age: 42
- name: echo if no cache hit
if: steps.nix-store-cache.outputs.cache-hit != 'true'
run: echo no cache hit
- name: Prepare cachix
uses: https://github.com/cachix/cachix-action@v12
with: