Cache not snapshots
All checks were successful
/ Test on 28.2 (push) Successful in 4m23s
/ Test on 29.1 (push) Successful in 4m35s
/ Test on snapshot (push) Successful in 6m29s

This commit is contained in:
Maciej 2024-08-15 20:31:30 +03:00
parent 6db71f77c3
commit 93731661a8
Signed by: maciej
GPG key ID: 41D62D42D3B0D765

View file

@ -10,10 +10,11 @@ runs:
- name: Restore cached version - name: Restore cached version
id: cache-restore id: cache-restore
uses: https://code.forgejo.org/actions/cache/restore@v4 uses: https://code.forgejo.org/actions/cache/restore@v4
if: inputs.version != 'snapshot'
with: with:
path: | path: |
/nix/store /nix/store
key: ${{ inputs.version }}-${{ hashFiles('flake.lock') }} key: ${{ inputs.version }}-${{ hashFiles('**/flake.lock') }}
- run: ${{ github.action_path }}/install.sh - run: ${{ github.action_path }}/install.sh
shell: bash shell: bash
env: env:
@ -21,7 +22,8 @@ runs:
- name: Cache version - name: Cache version
id: cache-put id: cache-put
uses: https://code.forgejo.org/actions/cache/save@v4 uses: https://code.forgejo.org/actions/cache/save@v4
if: inputs.version != 'snapshot'
with: with:
path: | path: |
/nix/store /nix/store
key: ${{ inputs.version }}-${{ hashFiles('flake.lock') }} key: ${{ inputs.version }}-${{ hashFiles('**/flake.lock') }}