-
Notifications
You must be signed in to change notification settings - Fork 44
40 lines (37 loc) · 1.06 KB
/
vale-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: vale-lint
concurrency:
group: pullrequest-untrusted-valelint-${{ github.event.number }}
cancel-in-progress: true
on:
pull_request:
types: [opened, synchronize]
jobs:
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Upgrade pip
run:
pip install --upgrade pip
- name: Create virtual environment
run:
python3 -m venv env
- name: Use virtual environment
run:
source env/bin/activate
- uses: errata-ai/vale-action@reviewdog
with:
version: 2.30.0
reporter: github-check
filter_mode: file
fail_on_error: true
level: error
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}