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
|
- 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') }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue