Skip to content

NO_JIRA: Bump reviewdog/action-yamllint from 1.6.1 to 1.7.2 #28

NO_JIRA: Bump reviewdog/action-yamllint from 1.6.1 to 1.7.2

NO_JIRA: Bump reviewdog/action-yamllint from 1.6.1 to 1.7.2 #28

Workflow file for this run

---
name: Lint YAML
on: # yamllint disable-line rule:truthy
pull_request:
paths:
- '**/*.yml'
- '**/*.yaml'
jobs:
yamllint:
runs-on: ubuntu-latest
outputs:
changed-files: ${{ steps.file-changes.outputs.changed-files }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Modified files
id: file-changes
run: |
echo "changed-files=$(git diff --name-only -r origin/${GITHUB_BASE_REF} origin/${GITHUB_HEAD_REF} | grep -E "\.(yml|yaml)" | tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Check GitHub event type to determine reporter type
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "REVIEWDOG_REPORTER=github-pr-review" >> $GITHUB_ENV
else
echo "REVIEWDOG_REPORTER=github-check" >> $GITHUB_ENV
fi
- name: Run yamllint
uses: reviewdog/action-yamllint@v1.7.2
with:
fail_on_error: false
filter_mode: diff_context
level: error
yamllint_flags: ${{ steps.file-changes.outputs.changed-files }}
reporter: ${{ env.REVIEWDOG_REPORTER }}