Skip to content

Commit

Permalink
Making vale optional
Browse files Browse the repository at this point in the history
Signed-off-by: Gergely Csatari <[email protected]>
  • Loading branch information
CsatariGergely committed Nov 14, 2024
1 parent 9127211 commit 2d03550
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/proofreading-vale.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: reviewdog
on:
pull_request_target:
types: [assigned, opened, edited, ready_for_review]

pull_request:
workflow_dispatch:

env:
REVIEWDOG_GITHUB_API_TOKEN: ${{secrets.VALE_GITHUB_TOKEN}}

jobs:
vale:
name: runner / vale
Expand All @@ -13,19 +14,22 @@ jobs:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7


- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit


- name: Install prerequisites
run: |
sudo apt-get --allow-releaseinfo-change update -y && sudo apt-get install -y docutils
env
- name: Run Vale
uses: errata-ai/vale-action@91ac403e8d26f5aa1b3feaa86ca63065936a85b6 # reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.VALE_GITHUB_TOKEN }}
continue-on-error: true
with:
files: '["content", "README.md"]'
# github-pr-check, github-pr-review, github-check
# more info on these: https://github.com/reviewdog/reviewdog#reporters
reporter: github-pr-check
fail_on_error: false
filter_mode: nofilter
token: ${{secrets.VALE_GITHUB_TOKEN}}

0 comments on commit 2d03550

Please sign in to comment.