File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 94
94
run : |
95
95
cd ${{github.workspace}}
96
96
fail="FALSE"
97
- branch="https://github.com/opea-project/GenAIExamples/blob/${{ github.event.pull_request.head.ref }}"
97
+ repo_name=${{ github.event.pull_request.head.repo.full_name }}
98
+ if [ "$(echo "$repo_name"|cut -d'/' -f1)" != "opea-project" ]; then
99
+ owner=$(echo "${{ github.event.pull_request.head.repo.full_name }}" |cut -d'/' -f1)
100
+ branch="https://github.com/$owner/GenAIExamples/tree/${{ github.event.pull_request.head.ref }}"
101
+ else
102
+ branch="https://github.com/opea-project/GenAIExamples/blob/${{ github.event.pull_request.head.ref }}"
103
+ fi
98
104
link_head="https://github.com/opea-project/GenAIExamples/blob/main"
99
- png_lines=$(grep -Eo '\]\([^)]+\)' -r -I .|grep -Ev 'http')
105
+ png_lines=$(grep -Eo '\]\([^)]+\)' --include='*.md' -r .|grep -Ev 'http')
100
106
if [ -n "$png_lines" ]; then
101
107
for png_line in $png_lines; do
102
108
refer_path=$(echo "$png_line"|cut -d':' -f1 | cut -d'/' -f2-)
Original file line number Diff line number Diff line change
1
+ Subproject commit de397d104153c2f5538a7d2eefa32b43b2918e43
You can’t perform that action at this time.
0 commit comments