Skip to content

Commit

Permalink
chore: 优化文本替换脚本,排除workflow并更新API接口
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovler-Young authored and github-actions[bot] committed Jan 23, 2025
1 parent 0bd3418 commit 33ae9de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/syncupstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,17 @@ jobs:
- name: Replace text patterns
run: |
find . -type f -exec sed -i 's/lobeThinking/thinking/g' {} +
find . -type f -exec sed -i 's/lobeArtifact/artifact/g' {} +
declare -A patterns=(
["lobeThinking"]="thinking"
["lobeArtifact"]="artifact"
["https://api.deepseek.com/v1"]="https://api.deepseek.com/beta"
)
for from in "${!patterns[@]}"; do
to="${patterns[$from]}"
find . -type f \
-not -path "./.github/workflows/*" \
-exec sed -i "s|$from|$to|g" {} +
done
git add .
git commit -m "chore: replace text patterns" || echo "No changes to commit"
git push origin ovleredit-upstream --force
2 changes: 2 additions & 0 deletions OvlerChangelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
2. 修改了分支名,以适配新的workflow。
3. workflow 增加 concurrency, 以避免同时运行多个workflow。
4. sync时自动把`lobeThinking`替换为`thinking`, 把`lobeArtifact`替换成`artifact`
5. fix 自动替换脚本,排除workflow。
6. 自动替换deepseek的api接口为beta接口。

## 2024.11.21

Expand Down

0 comments on commit 33ae9de

Please sign in to comment.