Skip to content

Commit cd31bcc

Browse files
committed
Escape to preserve newlines
1 parent e72b21c commit cd31bcc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/check_required_files.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ jobs:
164164
# Add the list of missing and required files to the workflow output:
165165
echo "::set-output name=missing_files::${missing_files[*]}"
166166
echo "::set-output name=required_files::${required_files[*]}"
167+
168+
# Add the Markdown list of checkboxes to the workflow output after escaping to preserve newlines:
169+
checkbox_list="${checkbox_list//'%'/'%25'}"
170+
checkbox_list="${checkbox_list//$'\n'/'%0A'}"
171+
checkbox_list="${checkbox_list//$'\r'/'%0D'}"
167172
echo "::set-output name=checkbox_list::${checkbox_list}"
168173
169174
shell: bash

0 commit comments

Comments
 (0)