mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-01 15:51:29 +08:00
6b5d880c80
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 47.0.2 to 47.0.4. - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](https://github.com/tj-actions/changed-files/compare/8cba46e29c11878d930bca7870bb54394d3e8b21...7dee1b0c1557f278e5c7dc244927139d78c0e22a) --- updated-dependencies: - dependency-name: tj-actions/changed-files dependency-version: 47.0.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: Codespell
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
# Ignore all other languages except English
|
|
paths-ignore:
|
|
- 'pages.*/*/*'
|
|
- 'contributing-guides/style-guide.*.md'
|
|
- 'contributing-guides/translation-templates/*'
|
|
- 'package-lock.json'
|
|
|
|
jobs:
|
|
codespell:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@7dee1b0c1557f278e5c7dc244927139d78c0e22a # v47.0.4
|
|
with:
|
|
# Ignore all other languages except English
|
|
files_ignore: |
|
|
pages.*/*/*
|
|
contributing-guides/style-guide.*.md
|
|
contributing-guides/translation-templates/*
|
|
package-lock.json
|
|
|
|
- name: Run Codespell
|
|
uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2
|
|
# Only run if there are changed files to check
|
|
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
|
|
with:
|
|
ignore_words_file: .github/codespell-ignore
|
|
# Exit with 0 regardless of typos.
|
|
only_warn: 1
|
|
# Only check files in the PR
|
|
path: ${{ steps.changed-files.outputs.all_changed_files }}
|