Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

πŸ› fix(ci): support perf commits in desktop canary trigger (#19046)

Inneidf001d13ba2a
diff --git a/.github/workflows/release-desktop-canary.yml b/.github/workflows/release-desktop-canary.yml
index 1246fddfe9e..9f0eb4753f0 100644
--- a/.github/workflows/release-desktop-canary.yml
+++ b/.github/workflows/release-desktop-canary.yml
@@ -4,7 +4,7 @@ name: Release Desktop Canary
# Canary θ‡ͺεŠ¨ε‘η‰ˆε·₯作桁
# ============================================
# 触发村仢:
-# 1. canary εˆ†ζ”―ζœ‰ push (合ε…₯ PR) δΈ” commit 前缀为 style/feat/fix/refactor/release (ζ”―ζŒ gitmoji)
+# 1. canary εˆ†ζ”―ζœ‰ push (合ε…₯ PR) δΈ” commit 前缀为 style/feat/fix/perf/refactor/release (ζ”―ζŒ gitmoji)
# 2. ζ‰‹εŠ¨θ§¦ε‘ (workflow_dispatch)
#
# 幢发策η•₯:
@@ -76,13 +76,13 @@ jobs:
commit_msg=$(git log -1 --pretty=%s HEAD)
echo "πŸ“ Head commit: $commit_msg"
- # ζ£€ζŸ₯ζ˜―ε¦εŒΉι… style/feat/fix/refactor/release 前缀 (ζ”―ζŒ gitmoji 前缀)
- if echo "$commit_msg" | grep -qiE '^(πŸ’„\s*)?style(\(.+\))?:|^(✨\s*)?feat(\(.+\))?:|^(πŸ›\s*)?fix(\(.+\))?:|^(♻️\s*)?refactor(\(.+\))?:|^(πŸš€\s*)?release(\(.+\))?:'; then
+ # ζ£€ζŸ₯ζ˜―ε¦εŒΉι… style/feat/fix/perf/refactor/release 前缀 (ζ”―ζŒ gitmoji 前缀)
+ if echo "$commit_msg" | grep -qiE '^(πŸ’„\s*)?style(\(.+\))?:|^(✨\s*)?feat(\(.+\))?:|^(πŸ›\s*)?fix(\(.+\))?:|^(⚑️\s*)?perf(\(.+\))?:|^(♻️\s*)?refactor(\(.+\))?:|^(πŸš€\s*)?release(\(.+\))?:'; then
echo "should_build=true" >> $GITHUB_OUTPUT
echo "βœ… Commit matches canary build trigger: $commit_msg"
else
echo "should_build=false" >> $GITHUB_OUTPUT
- echo "⏭️ Commit does not match style/feat/fix/refactor/release prefix, skipping: $commit_msg"
+ echo "⏭️ Commit does not match style/feat/fix/perf/refactor/release prefix, skipping: $commit_msg"
fi
- name: Calculate canary version
@@ -183,7 +183,7 @@ jobs:
echo "### ⚠️ Important Notes"
echo
echo "- **This is an automated canary build and is NOT intended for production use.**"
- echo "- Canary builds are triggered by \`build\`/\`fix\`/\`style\` commits on the \`canary\` branch."
+ echo "- Canary builds are triggered by \`style\`/\`feat\`/\`fix\`/\`perf\`/\`refactor\`/\`release\` commits on the \`canary\` branch."
echo "- May contain **unstable or incomplete changes**. **Use at your own risk.**"
echo "- It is strongly recommended to **back up your data** before using a canary build."
echo