-
Notifications
You must be signed in to change notification settings - Fork 5
/
linting.yml
32 lines (30 loc) · 958 Bytes
/
linting.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
# Example linting.yml file for:
# .github/workflows/linting.yml
name: Linting
on: [pull_request]
jobs:
prose:
runs-on: ubuntu-latest
steps:
# Checkout this repo
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1
# Make styles folder
- name: Create folder
run: |
mkdir -p .github/styles
# Lint with Vale
- name: Vale
uses: errata-ai/[email protected]
with:
onlyAnnotateModifiedLines: true
styles: |
https://github.com/DataDog/datadog-vale/releases/latest/download/Docshtml.zip
https://github.com/DataDog/datadog-vale/releases/latest/download/Docsmd.zip
# Remove the config line if your repo has a custom .vale.ini file
config: https://raw.githubusercontent.com/DataDog/datadog-vale/main/.vale.ini
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}