Skip to content

Commit

Permalink
chore: Rebuild docs if linting fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Dec 7, 2022
1 parent 963a1f1 commit 792c1a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 75 deletions.
74 changes: 0 additions & 74 deletions .github/workflows/lint-docs.yml

This file was deleted.

16 changes: 15 additions & 1 deletion .github/workflows/lint.yml
Expand Up @@ -9,7 +9,7 @@ on:
- ready_for_review

permissions:
contents: read
contents: write

jobs:
lint:
Expand Down Expand Up @@ -39,5 +39,19 @@ jobs:
run: pnpm run lint

- name: Verify Docs
id: verifyDocs
working-directory: ./packages/mermaid
continue-on-error: true
run: pnpm run docs:verify

- name: Rebuild Docs
if: ${{ steps.verifyDocs.outcome == 'failure' && github.event_name == 'push' }}
run: |
yarn docs:build
- name: Commit changes
uses: EndBug/add-and-commit@v9
if: ${{ steps.verifyDocs.outcome == 'failure' && github.event_name == 'push' }}
with:
message: 'Update docs'
add: 'docs/*'

0 comments on commit 792c1a8

Please sign in to comment.