From c0844adb92659f4e57a90b573a76175740e12b2b Mon Sep 17 00:00:00 2001 From: ZhangJian He Date: Thu, 23 May 2024 17:35:13 +0800 Subject: [PATCH] ci: use official typos github action (#4635) Signed-off-by: ZhangJian He --- .github/workflows/ci_check.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci_check.yml b/.github/workflows/ci_check.yml index 82af64a963e9..28580dffaddb 100644 --- a/.github/workflows/ci_check.yml +++ b/.github/workflows/ci_check.yml @@ -38,16 +38,10 @@ jobs: timeout-minutes: 10 env: FORCE_COLOR: 1 - TYPOS_VERSION: v1.21.0 steps: - - 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 + - uses: actions/checkout@v4 + - name: Check typos + uses: crate-ci/typos@v1.21.0 licenses: runs-on: ubuntu-latest