From 93731661a8f0bb79fb113799efa069ca8776f366 Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Thu, 15 Aug 2024 20:31:30 +0300 Subject: [PATCH] Cache not snapshots --- .forgejo/install-emacs/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/install-emacs/action.yml b/.forgejo/install-emacs/action.yml index 6fe1a2b..7945785 100644 --- a/.forgejo/install-emacs/action.yml +++ b/.forgejo/install-emacs/action.yml @@ -10,10 +10,11 @@ runs: - name: Restore cached version id: cache-restore uses: https://code.forgejo.org/actions/cache/restore@v4 + if: inputs.version != 'snapshot' with: path: | /nix/store - key: ${{ inputs.version }}-${{ hashFiles('flake.lock') }} + key: ${{ inputs.version }}-${{ hashFiles('**/flake.lock') }} - run: ${{ github.action_path }}/install.sh shell: bash env: @@ -21,7 +22,8 @@ runs: - name: Cache version id: cache-put uses: https://code.forgejo.org/actions/cache/save@v4 + if: inputs.version != 'snapshot' with: path: | /nix/store - key: ${{ inputs.version }}-${{ hashFiles('flake.lock') }} + key: ${{ inputs.version }}-${{ hashFiles('**/flake.lock') }}