diff --git a/.github/workflows/pr-link-path-scan.yml b/.github/workflows/pr-link-path-scan.yml index 77bf0d293..d6aa98d49 100644 --- a/.github/workflows/pr-link-path-scan.yml +++ b/.github/workflows/pr-link-path-scan.yml @@ -76,13 +76,7 @@ jobs: cd ${{github.workspace}} fail="FALSE" repo_name=${{ github.event.pull_request.head.repo.full_name }} - if [ "$(echo "$repo_name"|cut -d'/' -f1)" != "opea-project" ]; then - owner=$(echo "${{ github.event.pull_request.head.repo.full_name }}" |cut -d'/' -f1) - branch="https://github.com/$owner/GenAIExamples/tree/${{ github.event.pull_request.head.ref }}" - else - branch="https://github.com/opea-project/GenAIExamples/blob/${{ github.event.pull_request.head.ref }}" - fi - link_head="https://github.com/opea-project/GenAIExamples/blob/main" + branch="https://github.com/$repo_name/blob/${{ github.event.pull_request.head.ref }}" merged_commit=$(git log -1 --format='%H') changed_files="$(git diff --name-status --diff-filter=ARM ${{ github.event.pull_request.base.sha }} ${merged_commit} | awk '/\.md$/ {print $NF}')"