Skip to content

Commit 0ffdbf4

Browse files
committed
CI: fix build.yml bug
1 parent ec8eb99 commit 0ffdbf4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,16 @@ jobs:
182182
if [ -f ${{github.workspace}}/Script/common.sh ]; then
183183
source ${{github.workspace}}/Script/common.sh
184184
185-
content=$(<${{github.workspace}}/ChangeLog.md)
186-
if [[ $content =~ ${{env.RabbitRemoteControl_VERSION}} ]]; then
185+
content=$(<"${{github.workspace}}/ChangeLog.md")
186+
if [[ $content =~ "${{env.RabbitRemoteControl_VERSION}}" ]]; then
187187
echo "## :us: Change log" >> ${{github.workspace}}/Release.md
188188
echo "" >> ${{github.workspace}}/Release.md
189189
get_section ${{github.workspace}}/ChangeLog.md >> ${{github.workspace}}/Release.md
190190
echo "" >> ${{github.workspace}}/Release.md
191191
fi
192192
193-
# content=$(<${{github.workspace}}/ChangeLog_zh_CN.md)
194-
# if [[ $content =~ ${{env.RabbitRemoteControl_VERSION}} ]]; then
193+
# content=$(<"${{github.workspace}}/ChangeLog_zh_CN.md")
194+
# if [[ $content =~ "${{env.RabbitRemoteControl_VERSION}}" ]]; then
195195
# echo "## :cn: 修改日志" >> ${{github.workspace}}/Release.md
196196
# echo "" >> ${{github.workspace}}/Release.md
197197
# get_section ${{github.workspace}}/ChangeLog_zh_CN.md >> ${{github.workspace}}/Release.md
@@ -219,8 +219,8 @@ jobs:
219219
if [ -f ${{github.workspace}}/Script/common.sh ]; then
220220
source ${{github.workspace}}/Script/common.sh
221221
222-
content=$(<${{github.workspace}}/ChangeLog.md)
223-
if [[ $content =~ ${{env.RabbitRemoteControl_VERSION}} ]]; then
222+
content=$(<"${{github.workspace}}/ChangeLog.md")
223+
if [[ $content =~ "${{env.RabbitRemoteControl_VERSION}}" ]]; then
224224
echo "## :us: Change log" >> ${{github.workspace}}/Release.md
225225
echo "" >> ${{github.workspace}}/Release.md
226226
get_section ${{github.workspace}}/ChangeLog.md >> ${{github.workspace}}/Release.md

0 commit comments

Comments
 (0)