Skip to content

Commit

Permalink
chore: use mise.lock as cache key for mise
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Nov 4, 2024
1 parent 1907b0f commit 5b1d306
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: cache mise
uses: actions/cache@v4
with:
key: mise-tools-ubuntu-latest-${{ hashFiles('.mise.toml') }}
key: mise-tools-ubuntu-latest-${{ hashFiles('.mise.lock') }}
restore-keys: mise-tools-ubuntu-latest
path: |
~/.local/share/mise/installs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
path: |
~/.local/share/mise/installs
~/.local/share/mise/plugins
key: mise-tools-ubuntu-latest-${{ hashFiles('.mise.toml') }}
key: mise-tools-ubuntu-latest-${{ hashFiles('.mise.lock') }}
restore-keys: mise-tools-ubuntu-latest
- run: mise install
- run: mise run release-plz
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: cache mise
uses: actions/cache@v4
with:
key: mise-tools-${{ matrix.os }}-${{ hashFiles('.mise.toml') }}
key: mise-tools-${{ matrix.os }}-${{ hashFiles('.mise.lock') }}
restore-keys: mise-tools-${{ matrix.os }}
path: |
~/.local/share/mise/installs
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- name: cache mise
uses: actions/cache@v4
with:
key: mise-tools-ubuntu-latest-${{ hashFiles('.mise.toml') }}
key: mise-tools-ubuntu-latest-${{ hashFiles('.mise.lock') }}
restore-keys: mise-tools-ubuntu-latest
path: |
~/.local/share/mise/installs
Expand Down

0 comments on commit 5b1d306

Please sign in to comment.