Skip to content

Commit

Permalink
testing GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
aireilly committed Sep 27, 2023
1 parent 76f83da commit 17c80d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/vale-on-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ on: [pull_request]

jobs:
vale:
name: Linting with Vale
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
- uses: EPMatt/reviewdog-action-prettier@v1
with:
filter_mode: diff_context
vale_flags: "--no-exit --minAlertLevel=error"
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
filter_mode: added
vale_flags: "--no-exit --minAlertLevel=error --glob=*.adoc"
reporter: github-pr-review
fail_on_error: false
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
REVIEWDOG_GITHUB_API_TOKEN: ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ An Ansible task is a set of instructions to achieve a state defined, in its broa
==== image:images/yes.png[yes] auto-detect (verb)
*Description*: _Auto-detect_ means to automatically detect threats, new hardware, software updates, and so on.

The term "autodetect" is in the Vale rules and should trigger a Git Hub error report.

Check failure on line 564 in supplementary_style_guide/glossary_terms_conventions/general_conventions/a.adoc

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [RedHat.TermsErrors] Use 'auto-detect' rather than 'autodetect'. Raw Output: {"message": "[RedHat.TermsErrors] Use 'auto-detect' rather than 'autodetect'.", "location": {"path": "supplementary_style_guide/glossary_terms_conventions/general_conventions/a.adoc", "range": {"start": {"line": 564, "column": 11}}}, "severity": "ERROR"}

Check warning on line 564 in supplementary_style_guide/glossary_terms_conventions/general_conventions/a.adoc

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [RedHat.Spelling] Use correct American English spelling. Did you really mean 'autodetect'? Raw Output: {"message": "[RedHat.Spelling] Use correct American English spelling. Did you really mean 'autodetect'?", "location": {"path": "supplementary_style_guide/glossary_terms_conventions/general_conventions/a.adoc", "range": {"start": {"line": 564, "column": 11}}}, "severity": "WARNING"}

*Use it*: yes

*Incorrect forms*: autodetect
Expand Down

0 comments on commit 17c80d3

Please sign in to comment.