Skip to content

Commit 2c571b1

Browse files
committed
fix(runner): publish pipeline release notes are empty
1 parent f7c2083 commit 2c571b1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/runner-publish.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
format_section() {
148148
local pattern="$1"
149149
local title="$2"
150-
local content=$(echo "$LOG" | grep -iE "^$pattern" || true)
150+
local content=$(echo "$LOG" | grep -iE "$pattern" || true)
151151
if [[ -n "$content" ]]; then
152152
echo "### $title"
153153
echo "$content"
@@ -156,14 +156,14 @@ jobs:
156156
}
157157
158158
{
159-
format_section '^feat|^feature' "🚀 Features"
160-
format_section '^fix' "🚫 Bugs"
161-
format_section '^test' "🔎 Tests"
162-
format_section '^chore|^refactor|^internal|^ci|^docs' "🔧 Maintenance"
163-
format_section '^deps|^dependencies' "📦 Dependencies"
159+
format_section 'feat|feature' "🚀 Features"
160+
format_section 'fix' "🚫 Bugs"
161+
format_section 'test' "🔎 Tests"
162+
format_section 'chore|refactor|internal|ci|docs' "🔧 Maintenance"
163+
format_section 'deps|dependencies' "📦 Dependencies"
164164
165165
# Other commits not matching any above
166-
OTHER=$(echo "$LOG" | grep -vE '^(feat|feature|fix|test|chore|refactor|internal|ci|docs|deps|dependencies)' || true)
166+
OTHER=$(echo "$LOG" | grep -vE 'feat|feature|fix|test|chore|refactor|internal|ci|docs|deps|dependencies' || true)
167167
if [[ -n "$OTHER" ]]; then
168168
echo "### 🧼 Other Changes"
169169
echo "$OTHER"

0 commit comments

Comments
 (0)