Skip to content

Commit

Permalink
Merge pull request #1627 from ipfs/gha
Browse files Browse the repository at this point in the history
chore: update github actions
  • Loading branch information
galargh authored Jun 16, 2023
2 parents 840822b + 6ae33ee commit 6711a79
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: vale-v0

on:
on:
pull_request:
# 'edited': check the PR title on changes
types: [opened, edited, reopened, synchronize]
Expand All @@ -13,14 +13,16 @@ jobs:
- uses: actions/checkout@v3
- id: files
name: Get changed files
uses: jitterbit/get-changed-files@v1
with:
format: 'json'
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: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ github.token }}
with:
files: ${{ steps.files.outputs.added_modified }}
files: ${{ steps.files.outputs.added_modified }}
fail_on_error: true
vale_flags: "--minAlertLevel=error"
vale_flags: "--minAlertLevel=error"

0 comments on commit 6711a79

Please sign in to comment.