Skip to content

Commit 3ad9c6c

Browse files
committed
fix(ci): fix YAML syntax error in release workflow
Move markdown list entry construction into printf variable to avoid '*' at start of YAML line being parsed as a mapping key.
1 parent c81a411 commit 3ad9c6c

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,12 @@ jobs:
9393
# Strip conventional commit prefix and optional scope for the description
9494
desc=$(echo "$msg" | sed -E 's/^(feat|fix|refactor|chore|docs|style|perf|test|ci|build)(\([^)]*\))?[!]?:\s*//')
9595
96+
entry=$(printf '\n* %s (%s)' "$desc" "$link")
9697
case "$msg" in
97-
feat*) FEATURES="$FEATURES
98-
* $desc ($link)" ;;
99-
fix*) FIXES="$FIXES
100-
* $desc ($link)" ;;
101-
refactor*) REFACTORS="$REFACTORS
102-
* $desc ($link)" ;;
103-
*) OTHER="$OTHER
104-
* $desc ($link)" ;;
98+
feat*) FEATURES="$FEATURES$entry" ;;
99+
fix*) FIXES="$FIXES$entry" ;;
100+
refactor*) REFACTORS="$REFACTORS$entry" ;;
101+
*) OTHER="$OTHER$entry" ;;
105102
esac
106103
done <<< "$(git log "$LAST_TAG"..HEAD --pretty=format:'%H %s' -- "$pkg_path/src" | awk '!seen[$0]++')"
107104
done

0 commit comments

Comments
 (0)