Skip to content

Commit

Permalink
Merge branch 'test-vale' into test-vale-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Jun 17, 2024
2 parents 399682f + c6508f0 commit 793245a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint and Suggest
name: Lint and suggest

on:
pull_request:
Expand All @@ -10,7 +10,7 @@ permissions:
pull-requests: write

jobs:
vale:
vale: # Vale linting job
runs-on: ubuntu-latest

steps:
Expand All @@ -21,8 +21,6 @@ jobs:

- name: Install Vale
uses: errata-ai/vale-action@v2
with:
version: latest

- name: Install jq
run: sudo apt-get install -y jq
Expand All @@ -33,14 +31,14 @@ jobs:
BASE_SHA=$(git merge-base origin/${{ github.event.pull_request.base.ref }} ${{ github.sha }})
CHANGED_FILES=$(git diff --name-only $BASE_SHA ${{ github.sha }} -- '*.md')
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
echo "::set-output name=files::$(echo $CHANGED_FILES | jq -R -s -c 'split(\"\\n\")[:-1]')"
echo "CHANGED_FILES=$(echo $CHANGED_FILES | jq -R -s -c 'split(\"\n\")[:-1]')" >> $GITHUB_ENV
- name: Print Changed Files
run: echo $CHANGED_FILES

- name: Run Vale on changed files
run: |
for file in $(echo ${{ steps.changed-files.outputs.files }} | jq -r '.[]'); do
for file in ${{ env.CHANGED_FILES }}; do
echo "Running Vale on $file"
vale --output=JSON $file > "vale_output_${file//\//_}.json"
vale --output=edit $file > "vale_output_${file//\//_}_edit.md"
Expand Down
13 changes: 1 addition & 12 deletions styles/custom/Typos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,7 @@ swap:
- seperate: separate
- occured: occurred
- untill: until
- occurence: occurrence

ignore:
- dbt
- dbt Cloud
- ETL
- ELT
- DAG
- CTE
- DDL
- DML
- JSON
- CI/CD

action:
name: replace

0 comments on commit 793245a

Please sign in to comment.