Skip to content

Commit

Permalink
CI: format zip preview install/install-32/install-64/uninstall as bash
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Aug 25, 2023
1 parent bd65fa6 commit a48f41c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/zip-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ jobs:
echo "zip_preview<<EOF" >> $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
Expand Down Expand Up @@ -83,8 +88,13 @@ jobs:
echo "zip_preview<<EOF" >> $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
Expand Down

0 comments on commit a48f41c

Please sign in to comment.