Skip to content

Commit 8f73b2f

Browse files
authored
Retain newlines in in package index entry generation command (#20)
The previous command discarded all line breaks from the package input snippet generated by the release workflow, making it more difficult to check visually and to insert into the package index. This is fixed by adding the missing quoting on a variable.
1 parent 5390f61 commit 8f73b2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,16 @@ jobs:
205205
T_OS=`echo ${folder} | awk '{print toupper($0)}'`
206206
SHASUM=`sha256sum ${FILENAME} | cut -f1 -d" "`
207207
SIZE=`stat --printf="%s" ${FILENAME}`
208-
package_index=`echo $package_index |
208+
package_index=`echo "$package_index" |
209209
sed s/%%FILENAME_${T_OS}%%/${FILENAME}/ |
210210
sed s/%%FILENAME_${T_OS}%%/${FILENAME}/ |
211211
sed s/%%SIZE_${T_OS}%%/${SIZE}/ |
212212
sed s/%%SHA_${T_OS}%%/${SHASUM}/`
213213
done
214214
mv -v rp2040tools*.tar.bz2 release/
215215
echo ================== CUT ME HERE =====================
216-
echo ${package_index}
217-
echo ${package_index} > package_index_draft.json
216+
echo "${package_index}"
217+
echo "${package_index}" > package_index_draft.json
218218
219219
- name: Create Github Release and upload artifacts
220220
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)