Skip to content

Buf Verification Action runs all steps regardless of failure on previous #58

Buf Verification Action runs all steps regardless of failure on previous

Buf Verification Action runs all steps regardless of failure on previous #58

Workflow file for this run

name: Check generated docs
on:
pull_request:
workflow_dispatch:
jobs:
check-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm install --prefer-offline --frozen-lockfile
- name: Regenerate all READMEs
run: npm run docs
- name: Compare the expected and actual READMEs
run: |
if [ "$(git diff --ignore-space-at-eol | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi