-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into gdc-test-amplify
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Style check | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
style-job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
|
||
# For AsciiDoc users: | ||
- name: Install Asciidoctor | ||
run: sudo apt-get install -y asciidoctor | ||
|
||
- name: Run Vale | ||
uses: errata-ai/vale-action@reviewdog | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
fail_on_error: true | ||
reporter: github-pr-check | ||
filter_mode: added | ||
files: latest/ug | ||
continue-on-error: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
StylesPath = vale/styles | ||
|
||
Packages = RedHat, AsciiDoc | ||
|
||
# Ignore files in dirs starting with `.` to avoid raising errors for `.vale/fixtures/*/testinvalid.adoc` files | ||
[[!.]*.adoc] | ||
BasedOnStyles = RedHat, AsciiDoc | ||
RedHat.GitLinks = OFF | ||
AsciiDoc.UnsetAttributes = OFF | ||
RedHat.CaseSensitiveTerms = suggestion | ||
RedHat.TermsErrors = warning | ||
RedHat.Spacing = warning |