Update JavaScript section to remove confusing / outdated info #681
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-v0 | |
on: | |
pull_request: | |
# 'edited': check the PR title on changes | |
types: [opened, edited, reopened, synchronize] | |
jobs: | |
pr-content-check: | |
name: pr-content-check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- id: files | |
name: Get changed files | |
env: | |
ENDPOINT: repos/${{ github.repository }}/pulls/${{ github.event.number }}/files | |
SELECTOR: map(select(.status != "removed")) | map(.filename) | |
GITHUB_TOKEN: ${{ github.token }} | |
run: echo "added_modified=$(gh api "$ENDPOINT" --jq "$SELECTOR")" >> $GITHUB_OUTPUT | |
- name: vale check | |
uses: errata-ai/vale-action@reviewdog | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
files: ${{ steps.files.outputs.added_modified }} | |
fail_on_error: true | |
vale_flags: "--minAlertLevel=error" |