Add Wildcard widget #13504
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vale | |
on: | |
pull_request: | |
paths: | |
- 'content/en/**/*' | |
- 'layouts/shortcodes/**/*.md' | |
permissions: | |
contents: read | |
jobs: | |
vale: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Clone Datadog Vale | |
uses: actions/checkout@v4 | |
with: | |
repository: DataDog/datadog-vale | |
path: datadog-vale | |
persist-credentials: false | |
- uses: actions/[email protected] | |
with: | |
python-version: '3.11' | |
- run: pip install vale | |
- name: Edit StylesPath in Vale config file | |
run: sed -i 's/\.\.\/datadog-vale\/styles/datadog-vale\/styles/' .vale.ini | |
- name: Find changed lines | |
id: changed_lines | |
uses: hestonhoffman/changed-lines@v1 | |
with: | |
file_filter: '.md, .html' | |
- name: Run vale on changed files | |
env: | |
CHANGED_FILES: ${{ steps.changed_lines.outputs.changed_files }} | |
run: | | |
vale "${CHANGED_FILES}" \ | |
--output=local/bin/py/vale/vale_template.tmpl --no-exit > vale_output.log | |
- name: Parse Vale output | |
env: | |
CHANGED_LINES: ${{ steps.changed_lines.outputs.changed_lines }} | |
run: | | |
python local/bin/py/vale/vale_annotations.py \ | |
--git_data="${CHANGED_LINES}" |