From afb628eab9f25ce267e5c8dfbd90e7f3982a020d Mon Sep 17 00:00:00 2001 From: Flash Date: Tue, 5 Mar 2024 20:05:25 +0800 Subject: [PATCH] ci: upgrade typos in ci (#4322) --- .github/workflows/ci_check.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_check.yml b/.github/workflows/ci_check.yml index 50d85835e008..1948c4eba3a3 100644 --- a/.github/workflows/ci_check.yml +++ b/.github/workflows/ci_check.yml @@ -38,9 +38,13 @@ jobs: timeout-minutes: 10 env: FORCE_COLOR: 1 + TYPOS_VERSION: v1.19.0 steps: - - uses: actions/checkout@v4 - - run: curl -LsSf https://github.com/crate-ci/typos/releases/download/v1.14.8/typos-v1.14.8-x86_64-unknown-linux-musl.tar.gz | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin + - name: download typos + run: curl -LsSf https://github.com/crate-ci/typos/releases/download/$TYPOS_VERSION/typos-$TYPOS_VERSION-x86_64-unknown-linux-musl.tar.gz | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin + + - name: Checkout repository + uses: actions/checkout@v4 - name: do typos check with typos-cli run: typos