diff --git a/.github/workflows/typos_check.yml b/.github/workflows/typos_check.yml index 707a9f8f4..173250cee 100644 --- a/.github/workflows/typos_check.yml +++ b/.github/workflows/typos_check.yml @@ -1,8 +1,7 @@ name: Typos Check on: + workflow_dispatch: push: - branches: - - main pull_request: types: [opened, synchronize, reopened] @@ -12,9 +11,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Actions Repository - uses: actions/checkout@v2 - + uses: actions/checkout@v4 + with: + ref: ${{ github.ref_name }} + - name: Create config file + run: | + cat < typo-check-config.toml + [files] + extend-exclude = [ + "**/*_svg", + "**/migrations/**" + ] + EOF - name: Check spelling uses: crate-ci/typos@master with: - args: '--exclude "**/*_svg" --exclude "**/migrations/**"' + config: ./typo-check-config.toml