Skip to content

Commit f8065c1

Browse files
authored
Merge pull request #34 from codeboxrcodehub/dev
workflow fixed
2 parents d55c67e + e41e425 commit f8065c1

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,17 @@ jobs:
5151
continue
5252
fi
5353
54-
# Stop if another version header is encountered, but continue if it's the current version
55-
if [[ $in_changelog -eq 1 && "$line" =~ ^=[[:space:]] && "$line" != "= ${plugin_version} ="* ]]; then
56-
break
54+
# Stop if another version header is encountered
55+
if [[ $in_changelog -eq 1 && "$line" =~ ^=[[:space:]]* ]]; then
56+
if [[ "$line" == "= ${plugin_version} ="* ]]; then
57+
continue
58+
else
59+
break
60+
fi
5761
fi
5862
5963
# Append the relevant lines for the latest changelog
60-
if [[ $in_changelog -eq 1 && -n "$line" ]]; then
64+
if [[ $in_changelog -eq 1 && "$line" =~ ^\* ]]; then
6165
release_notes+="${line}\n"
6266
fi
6367
done < "$readme_file"
@@ -70,7 +74,7 @@ jobs:
7074
# Write the release notes with actual line breaks
7175
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
7276
echo -e "$release_notes" >> $GITHUB_ENV
73-
echo "EOF" >> $GITHUB_ENV
77+
echo "EOF" >> $GITHUB_ENV
7478
7579

7680
- name: Create zip file

0 commit comments

Comments
 (0)