Skip to content

Commit efe6fb9

Browse files
committed
chore: update github actions
1 parent 7cefb62 commit efe6fb9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/vale.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: vale-v0
22

3-
on:
3+
on:
44
pull_request:
55
# 'edited': check the PR title on changes
66
types: [opened, edited, reopened, synchronize]
@@ -13,14 +13,15 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- id: files
1515
name: Get changed files
16-
uses: jitterbit/get-changed-files@v1
17-
with:
18-
format: 'json'
16+
env:
17+
ENDPOINT: repos/${{ github.repository }}/pulls/${{ github.event.number }}/files
18+
SELECTOR: map(select(.status != "removed")) | map(.filename)
19+
run: echo "added_modified=$(gh api "$ENDPOINT" --jq "$SELECTOR")"
1920
- name: vale check
2021
uses: errata-ai/vale-action@reviewdog
2122
env:
22-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
23+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2324
with:
24-
files: ${{ steps.files.outputs.added_modified }}
25+
files: ${{ steps.files.outputs.added_modified }}
2526
fail_on_error: true
26-
vale_flags: "--minAlertLevel=error"
27+
vale_flags: "--minAlertLevel=error"

0 commit comments

Comments
 (0)