From a48f41c811ca08e93802dd83b398e68f37631422 Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Fri, 25 Aug 2023 19:32:24 -0400 Subject: [PATCH] CI: format zip preview install/install-32/install-64/uninstall as bash --- .github/workflows/zip-preview.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/zip-preview.yml b/.github/workflows/zip-preview.yml index 4a062a59b7..cba1cc8ec7 100644 --- a/.github/workflows/zip-preview.yml +++ b/.github/workflows/zip-preview.yml @@ -32,8 +32,13 @@ jobs: echo "zip_preview<> $GITHUB_OUTPUT IFS=$'\n' for file in $files; do + file_basename="$(basename "$file")" echo '`'"$file"'`' >> $GITHUB_OUTPUT - echo '```' >> $GITHUB_OUTPUT + if [ "$file_basename" == install ] || [ "$file_basename" == install-32 ] || [ "$file_basename" == install-64 ] || [ "$file_basename" == uninstall ]; then + echo '```bash' >> $GITHUB_OUTPUT + else + echo '```' >> $GITHUB_OUTPUT + fi cat "$file" >> $GITHUB_OUTPUT echo $'\n''```' >> $GITHUB_OUTPUT done @@ -83,8 +88,13 @@ jobs: echo "zip_preview<> $GITHUB_OUTPUT IFS=$'\n' for file in $files; do + file_basename="$(basename "$file")" echo '`'"$file"'`' >> $GITHUB_OUTPUT - echo '```' >> $GITHUB_OUTPUT + if [ "$file_basename" == install ] || [ "$file_basename" == install-32 ] || [ "$file_basename" == install-64 ] || [ "$file_basename" == uninstall ]; then + echo '```bash' >> $GITHUB_OUTPUT + else + echo '```' >> $GITHUB_OUTPUT + fi cat "$file" >> $GITHUB_OUTPUT echo $'\n''```' >> $GITHUB_OUTPUT done