Skip to content

Commit bbdb58c

Browse files
theletterfv1v
andauthored
Update Vale linting action (#485)
* Update Vale linting action * Update .github/workflows/vale-linting.yml Co-authored-by: Victor Martinez <[email protected]> * Apply suggestions from code review Co-authored-by: Victor Martinez <[email protected]> * Update actions --------- Co-authored-by: Victor Martinez <[email protected]>
1 parent 2ad59ba commit bbdb58c

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

.github/workflows/vale-linting.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88

99
permissions:
1010
contents: read
11-
pull-requests: write # Required for posting PR comments
1211

1312
jobs:
1413
vale:
@@ -18,8 +17,6 @@ jobs:
1817
uses: actions/checkout@v5
1918
with:
2019
fetch-depth: 0
21-
22-
- name: Run Elastic Vale Linter
23-
uses: elastic/vale-rules@main
24-
with:
25-
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: Run Vale Linter
22+
uses: elastic/vale-rules/lint@main
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Vale Report
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Vale Documentation Linting"]
6+
types:
7+
- completed
8+
9+
permissions:
10+
pull-requests: read
11+
12+
jobs:
13+
report:
14+
runs-on: ubuntu-latest
15+
if: github.event.workflow_run.event == 'pull_request'
16+
permissions:
17+
pull-requests: write
18+
19+
steps:
20+
- name: Post Vale Results
21+
uses: elastic/vale-rules/report@main
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)