Cache not snapshots
This commit is contained in:
parent
6db71f77c3
commit
93731661a8
1 changed files with 4 additions and 2 deletions
|
|
@ -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') }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue