From fb4d77c0083726c55cb16ae9fb8f9e1b92e812c1 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 24 Jul 2024 19:03:07 -0400 Subject: [PATCH] Pin a specific version of `typos` in CI (#15128) This PR makes it so we pin a specific version of `typos` in CI, rather than just relying on whatever is already installed or what the latest version is. Release Notes: - N/A --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 109e4b7719..7ac790afb8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,10 +40,15 @@ jobs: - name: Check spelling run: | - if ! which typos > /dev/null; then - cargo install typos-cli + if ! cargo install --list | grep "typos-cli v$TYPOS_CLI_VERSION" > /dev/null; then + echo "Installing typos-cli@$TYPOS_CLI_VERSION..." + cargo install "typos-cli@$TYPOS_CLI_VERSION" + else + echo "typos-cli@$TYPOS_CLI_VERSION is already installed." fi typos + env: + TYPOS_CLI_VERSION: "1.23.3" - name: Run style checks uses: ./.github/actions/check_style