Skip to content

Commit b2e75c3

Browse files
committed
fix: minor fixes
1 parent ee785ae commit b2e75c3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,14 @@ jobs:
118118
# First check the PR title (highest priority)
119119
check_for_prefixes "$PR_TITLE"
120120
121-
# Then check each commit message
122-
echo "$COMMIT_MESSAGES" | while read -r message; do
121+
# Then check each commit message (using a for loop to avoid subshell issues)
122+
IFS=$'\n'
123+
for message in $COMMIT_MESSAGES; do
123124
if [[ -n "$message" ]]; then
124125
check_for_prefixes "$message"
125126
fi
126127
done
128+
unset IFS
127129
128130
# Output the final decision
129131
echo "Final decision: $BUMP_TYPE version bump"

0 commit comments

Comments
 (0)