Skip to content

Commit

Permalink
Update pr-changed-files.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samzong authored Jul 4, 2024
1 parent a62e766 commit 4747ca6
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/pr-changed-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,32 @@ jobs:
# 从环境变量读取更改的文件列表
changed_files = os.environ['CHANGED_FILES']
print("Changed files:",changed_files)
# 特殊字符串列表
dce_model = [
'zh/amamba/',
'zh/skoala/',
'zh/middleware/',
'zh/kpanda/',
'zh/baize/',
'zh/insight/',
'zh/kant/',
'zh/dce/',
'zh/install/',
'zh/mspider/',
'zh/video/',
'zh/ghippo/',
'zh/download/',
'zh/blogs'/,
'zh/community/',
'zh/native/'
]
# 检查是否包含特殊字符串
for model in dce_model:
if any(model in file for file in changed_files):
print(f"Matched special string: {special_string}")
EOF
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}

Expand Down

0 comments on commit 4747ca6

Please sign in to comment.