Skip to content

Commit 975fb35

Browse files
authored
Change nix version env var (#68)
fixes #67 Signed-off-by: Lucille Hua <[email protected]>
1 parent 967b37b commit 975fb35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ runs:
140140
run: |
141141
NIX_VERSION_OUTPUT=$(nix --version)
142142
NIX_VERSION=$(echo "${NIX_VERSION_OUTPUT}" | awk '{print $NF}')
143-
echo "nix-version=$NIX_VERSION" >> $GITHUB_ENV
143+
echo "nix_version=$NIX_VERSION" >> $GITHUB_ENV
144144
145145
- name: Mount nix store cache
146146
id: cache-devbox-nix-store
@@ -155,7 +155,7 @@ runs:
155155
~/.nix-profile
156156
/nix/store
157157
/nix/var/nix
158-
key: ${{ runner.os }}-${{ runner.arch }}-devbox-nix-store-${{ env.nix-version }}-${{ hashFiles(format('{0}/devbox.lock', inputs.project-path)) }}
158+
key: ${{ runner.os }}-${{ runner.arch }}-devbox-nix-store-${{ env.nix_version }}-${{ hashFiles(format('{0}/devbox.lock', inputs.project-path)) }}
159159

160160
- name: Install devbox packages
161161
shell: bash
@@ -183,7 +183,7 @@ runs:
183183
~/.nix-profile
184184
/nix/store
185185
/nix/var/nix
186-
key: ${{ runner.os }}-${{ runner.arch }}-devbox-nix-store-${{ env.nix-version }}-${{ hashFiles(format('{0}/devbox.lock', inputs.project-path)) }}
186+
key: ${{ runner.os }}-${{ runner.arch }}-devbox-nix-store-${{ env.nix_version }}-${{ hashFiles(format('{0}/devbox.lock', inputs.project-path)) }}
187187

188188
- name: Restore tar command
189189
if: inputs.enable-cache == 'true'

0 commit comments

Comments
 (0)