split lint docs action

This commit is contained in:
Sidharth Vinod 2022-10-03 14:21:54 +08:00
parent 3bae25fe6b
commit 8d6af3dfed
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 4 additions and 4 deletions

View File

@ -20,8 +20,8 @@ jobs:
- uses: actions/checkout@v3
if: ${{ github.event_name == 'pull_request' }}
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
# repository: ${{ github.event.pull_request.head.repo.full_name }}
# ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- uses: pnpm/action-setup@v2
@ -49,7 +49,7 @@ jobs:
packages/mermaid/src/docs.mts
- name: Run step if any file(s) in the docs folder change
if: steps.changed-files-fork-point.outputs.any_modified == 'true'
if: steps.changed-files-fork-point.outputs.only_modified == 'true'
run: |
echo "Only files in the src/docs folder has changed."
echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}"
@ -57,7 +57,7 @@ jobs:
- name: Commit changes
uses: EndBug/add-and-commit@v9
if: steps.changed-files-fork-point.outputs.any_modified == 'true'
if: steps.changed-files-fork-point.outputs.only_modified == 'true'
with:
message: 'Update docs'
add: 'docs/*'