From 5b1d306e7b613a1f9a4bb3f00f99522da630672b Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:12:47 -0600 Subject: [PATCH] chore: use mise.lock as cache key for mise --- .github/workflows/autofix.yml | 2 +- .github/workflows/release-plz.yml | 2 +- .github/workflows/test.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 5afdca318..1ae3305b8 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -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 diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 6dff8cd2b..9d24995da 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af92dc271..b50f402f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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