Repository navigation
57 lines (47 loc) · 1.38 KB
/
Copy pathvale.yml
File metadata and controls
57 lines (47 loc) · 1.38 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
# yamllint disable rule:line-length
name: "vale"
on: # yamllint disable-line rule:truthy
pull_request:
paths:
- '**.rst'
- '**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
vale:
name: vale
runs-on: ubuntu-latest
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
steps:
- name: Prepare GitHub workdir
run: |
mkdir -p /github/home/
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
json: true
escape_json: false
files: |
**.rst
**.md
- name: Run vale checks on modified files
uses: vale-cli/vale-action@518a9136acc6e6668ce7c00d367051e0941e87ff # v3.0.0
if: steps.changed-files.outputs.any_changed == 'true'
with:
fail_on_error: false # to be changed when upstream addresses 84
files: ${{ steps.changed-files.outputs.all_changed_files }}
version: none