Run doc lint only if files changed

This commit is contained in:
Sidharth Vinod
2022-10-03 14:30:46 +08:00
parent 9c5c85d34a
commit 0a547e524e

View File

@@ -18,17 +18,17 @@ jobs:
node-version: [16.x] node-version: [16.x]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
if: ${{ github.event_name == 'pull_request' }} # if: ${{ github.event_name == 'pull_request' }}
with: # with:
# fetch-depth: 0
# repository: ${{ github.event.pull_request.head.repo.full_name }} # repository: ${{ github.event.pull_request.head.repo.full_name }}
# ref: ${{ github.event.pull_request.head.ref }} # ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- name: Run changed-files using the fork point of a pull request - name: Run changed-files using the fork point of a pull request
id: changed-files-fork-point id: changed-files-fork-point
uses: tj-actions/changed-files@v29 uses: tj-actions/changed-files@v29
with: with:
use_fork_point: 'true' # use_fork_point: 'true'
files: | files: |
packages/mermaid/src/docs/* packages/mermaid/src/docs/*
packages/mermaid/src/docs.mts packages/mermaid/src/docs.mts