Skip to content

Commit eddc8fc

Browse files
fix(release_create): remove extra blank line on virustotal amended release notes (#19)
1 parent 736cb79 commit eddc8fc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

actions/release_create/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ runs:
8989
9090
# If we have VT results, append them
9191
if [ -n '${{ steps.vt.outputs.json }}' ]; then
92-
# Add separator if body exists and isn't empty
93-
if [ -s ${rb_file} ] && [ "$(cat ${rb_file} | tr -d '[:space:]')" != "" ]; then
94-
echo "" >> ${rb_file}
95-
fi
96-
9792
# Check if VirusTotal Results header already exists, if not add it
9893
if ! grep -qF "$VT_HEADER" ${rb_file}; then
94+
# Add separator if body exists and isn't empty
95+
if [ -s ${rb_file} ] && [ "$(cat ${rb_file} | tr -d '[:space:]')" != "" ]; then
96+
echo "" >> ${rb_file}
97+
fi
98+
9999
echo "---" >> ${rb_file}
100100
echo "$VT_HEADER" >> ${rb_file}
101101
fi

0 commit comments

Comments
 (0)