mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Run doc lint only if files changed
This commit is contained in:
parent
9c5c85d34a
commit
0a547e524e
8
.github/workflows/lint-docs.yml
vendored
8
.github/workflows/lint-docs.yml
vendored
@ -18,17 +18,17 @@ jobs:
|
||||
node-version: [16.x]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
with:
|
||||
# if: ${{ github.event_name == 'pull_request' }}
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
# repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
# ref: ${{ github.event.pull_request.head.ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run changed-files using the fork point of a pull request
|
||||
id: changed-files-fork-point
|
||||
uses: tj-actions/changed-files@v29
|
||||
with:
|
||||
use_fork_point: 'true'
|
||||
# use_fork_point: 'true'
|
||||
files: |
|
||||
packages/mermaid/src/docs/*
|
||||
packages/mermaid/src/docs.mts
|
||||
|
Loading…
x
Reference in New Issue
Block a user