File tree 6 files changed +66
-22
lines changed 6 files changed +66
-22
lines changed Original file line number Diff line number Diff line change
1
+ [codespell]
2
+ builtin = usage
3
+ ignore-multiline-regex = codespell:ignore-begin.*codespell:ignore-end
4
+ context=0
Original file line number Diff line number Diff line change 43
43
- name : Run ansible-test
44
44
uses : ansible-community/ansible-test-gh-action@release/v1
45
45
with :
46
- testing-type : sanity # wokeignore:rule=sanity
46
+ testing-type : sanity
47
47
ansible-core-version : stable-2.17
48
48
collection-src-directory : ${{ github.workspace }}/.tox/ansible_collections/${{ env.LSR_ROLE2COLL_NAMESPACE }}/${{ env.LSR_ROLE2COLL_NAME }}
Original file line number Diff line number Diff line change
1
+ # Codespell configuration is within .codespellrc
2
+ ---
3
+ name : Codespell
4
+ on : # yamllint disable-line rule:truthy
5
+ - pull_request
6
+ permissions :
7
+ contents : read
8
+ jobs :
9
+ codespell :
10
+ name : Check for spelling errors
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Get variable with regex values
17
+ id : regexvar
18
+ run : |
19
+ curl -L -s -o dictionary_usage.txt https://raw.githubusercontent.com/codespell-project/codespell/refs/heads/main/codespell_lib/data/dictionary_usage.txt
20
+ regexvar=$(sed 's/->.*//g' dictionary_usage.txt | sed 's/$/|/' | tr -d '\n' | sed 's/.$//')
21
+ rm dictionary_usage.txt
22
+ echo "regexvar=$regexvar" >> "$GITHUB_OUTPUT"
23
+
24
+ - name : Show errors from codespell as annotation in GitHub Actions
25
+ uses : codespell-project/codespell-problem-matcher@v1
26
+
27
+ - name : Codespell
28
+ uses : spetrosi/actions-codespell@add-regex-input
29
+ with :
30
+ regex : ${{ steps.regexvar.outputs.regexvar }}
Original file line number Diff line number Diff line change
1
+ # Codespell configuration is within .codespellrc
2
+ ---
3
+ name : Detect non-inclusive language
4
+ on : # yamllint disable-line rule:truthy
5
+ - pull_request
6
+ permissions :
7
+ contents : read
8
+ jobs :
9
+ codespell :
10
+ name : Detect non-inclusive language
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Get variable with regex values
17
+ id : regexvar
18
+ run : |
19
+ curl -L -s -o dictionary_usage.txt https://raw.githubusercontent.com/codespell-project/codespell/refs/heads/main/codespell_lib/data/dictionary_usage.txt
20
+ regexvar=$(sed 's/->.*//g' dictionary_usage.txt | sed 's/$/|/' | tr -d '\n' | sed 's/.$//')
21
+ rm dictionary_usage.txt
22
+ echo "regexvar=$regexvar" >> "$GITHUB_OUTPUT"
23
+
24
+ - name : Show errors from codespell as annotation in GitHub Actions
25
+ uses : codespell-project/codespell-problem-matcher@v1
26
+
27
+ - name : Detect non-inclusive language with codespell
28
+ uses : spetrosi/actions-codespell@add-regex-input
29
+ with :
30
+ regex : ${{ steps.regexvar.outputs.regexvar }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Role Name
2
2
3
- [](https://github.com/linux-system-roles/template/actions/workflows/ansible-lint.yml) [](https://github.com/linux-system-roles/template/actions/workflows/ansible-test.yml) [](https://github.com/linux-system-roles/template/actions/workflows/markdownlint.yml) [](https://github.com/linux-system-roles/template/actions/workflows/shellcheck.yml) [](https://github.com/linux-system-roles/template/actions/workflows/tft.yml) [](https://github.com/linux-system-roles/template/actions/workflows/tft_citest_bad.yml) [](https://github.com/linux-system-roles/template/actions/workflows/woke.yml)
3
+ [](https://github.com/linux-system-roles/template/actions/workflows/ansible-lint.yml) [](https://github.com/linux-system-roles/template/actions/workflows/ansible-test.yml) [](https://github.com/linux-system-roles/template/actions/workflows/codespell.yml) [](https://github.com/linux-system-roles/template/actions/workflows/detect_non_inclusive_language.yml) [](https://github.com/linux-system-roles/template/actions/workflows/markdownlint.yml) [](https://github.com/linux-system-roles/template/actions/workflows/shellcheck.yml) [](https://github.com/linux-system-roles/template/actions/workflows/tft.yml) [](https://github.com/linux-system-roles/template/actions/workflows/tft_citest_bad.yml)
4
4
5
5
![ template] ( https://github.com/linux-system-roles/template/workflows/tox/badge.svg )
6
6
You can’t perform that action at this time.
0 commit comments