on master help sign in
Don't pre
commit87f7b1d64b92abee57de30f17b7ccc1ea02a03c8 authoriko <ilyakooo0@gmail.com> dateTue 21 Dec 2021, 20:03 (5 years ago) parent43a0d97
1 file changed+9−5
.github/actions/nix_cache/action.yaml+9−5
.github/actions/nix_cache/action.yaml+9−5
@@ -15,13 +15,17 @@ runs:
1515 ~/nix/store
1616 key: ${{ inputs.key }}
1717 - name: Move nix store
18+ shell: bash
19+ env:
20+ CACHE_HIT: ${{ steps.cache-nix.outputs.cache-hit }}
21+ run: |
22+ if [[ "$CACHE_HIT" == 'true' ]]; then
23+ sudo mkdir -p /nix/store
24+ sudo mv -f ~/nix/store/* /nix/store/
25+ fi
26+ - name: Move nix store post
1827 uses: ilyakooo0/github-composite-action-pre-post@1.0.0
1928 with:
20− pre: |
21− if [[ -d ~/nix/store ]]; then
22− sudo mkdir -p /nix/store
23− sudo mv -f ~/nix/store/* /nix/store/
24− fi
2529 post: |
2630 mkdir -p ~/nix/store
2731 sudo mv -f /nix/store/* ~/nix/store/