From 4747ca6e6e9903872777ae2f7c9c543281ba0bc9 Mon Sep 17 00:00:00 2001 From: Samzong Date: Thu, 4 Jul 2024 10:38:33 +0800 Subject: [PATCH] Update pr-changed-files.yml --- .github/workflows/pr-changed-files.yml | 27 +++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-changed-files.yml b/.github/workflows/pr-changed-files.yml index d2c31a4..e3c4a7e 100644 --- a/.github/workflows/pr-changed-files.yml +++ b/.github/workflows/pr-changed-files.yml @@ -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 }}