File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff 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"
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
You can’t perform that action at this time.
0 commit comments