I frequently edit the workflow using the yaml file interface since it allows for faster navigation. However most of the scripts end up being reformatted from
- script@1:
title: Decrypt and Install the iOS provisioning profiles and certificates
inputs:
- content: |
#!/usr/bin/env bash
set +x
#more statements follow
To this:
- script@1:
title: Decrypt and Install the iOS provisioning profiles and certificates
inputs:
- content: "#!/usr/bin/env bash\nset +x\n\n#more statements follow..."
How can I prevent this wrapping/reformatting from happening? Thanks.
This seems to be happening when the lines in the script extends past a number of columns (80?). If this is the case then this should at least be made configurable. The 80 character limit is an artifact of an by-gone computing age. It would be a very small population that uses monochrome CRT and dot-matrix printers today.
This snippet also got reformatted and nothing in it reaches the 80th column.
- script@1:
title: Check files
inputs:
- content: |
#!/usr/bin/env bash
set -e
cd \"$FASTLANE_WORK_DIR\"
echo list of files are:
ls -l *txt
for i in *txt
do
echo "Contents of $i:: "
cat $i
echo -e "\n"
done
Thank you. I understand the need to ensure the format remains readable in the workflow UI editor but imho it shouldnt be at the expense of the users who prefer editing the raw yml format.