diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index d1b6a406018..85903a3a9fd 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -1,4 +1,4 @@ -name: Lint and Suggest +name: Lint and suggest on: pull_request: @@ -10,7 +10,7 @@ permissions: pull-requests: write jobs: - vale: + vale: # Vale linting job runs-on: ubuntu-latest steps: @@ -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 @@ -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" diff --git a/styles/custom/Typos.yml b/styles/custom/Typos.yml index 40a091e3e56..5d56dec1097 100644 --- a/styles/custom/Typos.yml +++ b/styles/custom/Typos.yml @@ -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