diff --git a/.github/workflows/test-hyperlinks.md b/.github/workflows/test-hyperlinks.md index 2b6f9386317..b7302dd21ca 100644 --- a/.github/workflows/test-hyperlinks.md +++ b/.github/workflows/test-hyperlinks.md @@ -150,9 +150,9 @@ In case of workflow_call, the event type of called workflow shares the same even done elif [[ "${EVENT_TYPE}" == "pull_request" ]]; then git diff --name-only HEAD^1 HEAD > updatedFiles.txt - cat updatedFiles.txt | grep -E "*.xml" | tee xmlFilesList.txt - cat updatedFiles.txt | grep -E "*.md" | tee mdFilesList.txt - cat updatedFiles.txt | grep -E "*.rst" | tee rstFilesList.txt + cat updatedFiles.txt | grep -E "*\.xml" | tee xmlFilesList.txt + cat updatedFiles.txt | grep -E "*\.md" | tee mdFilesList.txt + cat updatedFiles.txt | grep -E "*\.rst" | tee rstFilesList.txt fi ``` diff --git a/.github/workflows/test-hyperlinks.yml b/.github/workflows/test-hyperlinks.yml index 840892f681c..81666e2562e 100644 --- a/.github/workflows/test-hyperlinks.yml +++ b/.github/workflows/test-hyperlinks.yml @@ -99,9 +99,9 @@ jobs: done elif [[ "${EVENT_TYPE}" == "pull_request" ]]; then git diff --name-only HEAD^1 HEAD > updatedFiles.txt - cat updatedFiles.txt | grep -E "*.xml" | tee xmlFilesList.txt - cat updatedFiles.txt | grep -E "*.md" | tee mdFilesList.txt - cat updatedFiles.txt | grep -E "*.rst" | tee rstFilesList.txt + cat updatedFiles.txt | grep -E "*\.xml" | tee xmlFilesList.txt + cat updatedFiles.txt | grep -E "*\.md" | tee mdFilesList.txt + cat updatedFiles.txt | grep -E "*\.rst" | tee rstFilesList.txt fi - name: List links from Documentation files