Skip to content

Commit 4bf6ed0

Browse files
committed
workflow fixed
1 parent e5712f7 commit 4bf6ed0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
run: |
3838
changelog_section_start="== Changelog =="
3939
readme_file="$readme_file"
40+
plugin_version="${{ github.ref_name }}" # Assuming the tag is the version
4041
4142
in_changelog=0
4243
release_notes=""
@@ -60,8 +61,8 @@ jobs:
6061
exit 1
6162
fi
6263
63-
# Use printf to handle newlines correctly
64-
echo -e "RELEASE_NOTES=$release_notes" >> $GITHUB_ENV
64+
# Use printf to handle newlines correctly and escape special characters
65+
printf "RELEASE_NOTES<<EOF\n%s\nEOF\n" "$release_notes" >> $GITHUB_ENV
6566
source $GITHUB_ENV # Ensure the environment variable is available for subsequent steps
6667
6768
- name: Create zip file

0 commit comments

Comments
 (0)