Skip to content

Commit

Permalink
Merge branch 'main' into gdc-test-amplify
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffcline committed Nov 2, 2024
2 parents 02d8bbb + 14e0919 commit 9815071
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/vale.yml
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
12 changes: 12 additions & 0 deletions .vale.ini
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

0 comments on commit 9815071

Please sign in to comment.