Skip to content

Bump @ddbeck/mdn-content-inventory from 0.2.20241206 to 0.2.20241209 #137

Bump @ddbeck/mdn-content-inventory from 0.2.20241206 to 0.2.20241209

Bump @ddbeck/mdn-content-inventory from 0.2.20241206 to 0.2.20241209 #137

Workflow file for this run

name: Reviewdog
on:
pull_request_target:
branches: ["main"]
jobs:
fix:
name: Fix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: npm run fix
env:
FORCE_COLOR: 3
- run: git diff > diff.patch
- name: Upload diff
uses: actions/upload-artifact@v4
with:
name: diff
path: diff.patch
suggest:
name: Suggest
needs: fix
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Download diff
uses: actions/download-artifact@v4
with:
name: diff
- name: Setup
uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Suggest changes
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat diff.patch | reviewdog \
-name="bcd-linter" \
-f=diff \
-f.diff.strip=1 \
-filter-mode=diff_context \
-reporter=github-pr-review