Skip to content

Commit

Permalink
fix(action.yml): cache-store input name didn't match references (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
srounce authored Mar 18, 2023
1 parent 9dedd45 commit f99b4b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
# cache nix store https://github.com/cachix/install-nix-action/issues/56#issuecomment-1240991760
- name: "Cache Nix store"
uses: actions/[email protected]
if: ${{ inputs.cache-nix-store == 'true' }}
if: ${{ inputs.cache-store == 'true' }}
id: nix-cache
with:
path: /tmp/nixcache
Expand All @@ -53,7 +53,7 @@ runs:

- name: "Import Nix store cache"
shell: bash
if: ${{ inputs.cache-nix-store == 'true' && steps.nix-cache.outputs.cache-hit == 'true' }}
if: ${{ inputs.cache-store == 'true' && steps.nix-cache.outputs.cache-hit == 'true' }}
run: |
echo "::group::Nix store import"
nix-store --import < /tmp/nixcache
Expand Down Expand Up @@ -97,7 +97,7 @@ runs:
- name: "Export Nix store cache"
shell: bash
if: ${{ inputs.cache-nix-store == 'true' && steps.nix-cache.outputs.cache-hit != 'true' }}
if: ${{ inputs.cache-store == 'true' && steps.nix-cache.outputs.cache-hit != 'true' }}
run: |
echo "::group::Nix store export"
nix-store --export $(find /nix/store -maxdepth 1 -name '*-*') > /tmp/nixcache
Expand Down

0 comments on commit f99b4b2

Please sign in to comment.