diff --git a/.github/workflows/check-links.yaml b/.github/workflows/check-links.yaml index bbfd0bb2ed49..9a44de08efb2 100644 --- a/.github/workflows/check-links.yaml +++ b/.github/workflows/check-links.yaml @@ -29,6 +29,8 @@ jobs: - name: Get changed files id: changes run: | + MD_LINK_CHECK_VERSION_CHANGE=$(git diff origin/main -- .github/workflows/check-links.yaml $(git merge-base origin/main $PR_HEAD) $PR_HEAD | grep "MD_LINK_CHECK_VERSION:" || echo "") + echo $MD_LINK_CHECK_VERSION_CHANGE echo "md=$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main $PR_HEAD) $PR_HEAD | grep .md$ | xargs)" >> $GITHUB_OUTPUT check-links: runs-on: ubuntu-latest