mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-11 10:09:39 +02:00
Get base sha from PR
This commit is contained in:
12
.github/workflows/lint-docs.yml
vendored
12
.github/workflows/lint-docs.yml
vendored
@@ -22,10 +22,22 @@ jobs:
|
|||||||
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 }}
|
||||||
|
|
||||||
|
- name: Get branch name
|
||||||
|
id: branch-name
|
||||||
|
uses: tj-actions/branch-names@v5
|
||||||
|
|
||||||
|
- uses: nrwl/last-successful-commit-action@v1
|
||||||
|
id: last_successful_commit_pull_request
|
||||||
|
with:
|
||||||
|
branch: ${{ steps.branch-name.outputs.base_ref_branch }}
|
||||||
|
workflow_id: 'lint-docs.yml'
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Check if source docs are changed
|
- name: Check if source docs are changed
|
||||||
id: changed-docs
|
id: changed-docs
|
||||||
uses: tj-actions/changed-files@v29
|
uses: tj-actions/changed-files@v29
|
||||||
with:
|
with:
|
||||||
|
base_sha: ${{ steps.last_successful_commit_pull_request.outputs.commit_hash }}
|
||||||
files: |
|
files: |
|
||||||
packages/mermaid/src/docs/*
|
packages/mermaid/src/docs/*
|
||||||
packages/mermaid/src/docs.mts
|
packages/mermaid/src/docs.mts
|
||||||
|
Reference in New Issue
Block a user