Skip to content

Commit

Permalink
make check fail
Browse files Browse the repository at this point in the history
  • Loading branch information
nl32 committed Apr 24, 2024
1 parent cb2d9c1 commit 7f6c7f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/generateCheck.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
if [ $status == 0 ]; then
echo "## Formatting Check passed 🥳" >>$GITHUB_STEP_SUMMARY
echo "All files are formatted correctly" >>$GITHUB_STEP_SUMMARY
exit 0
else
echo "## Formatting Check Failed 😅" >>$GITHUB_STEP_SUMMARY
echo "Please run prettier using \`npx prettier . --write\` in order to format your code" >>$GITHUB_STEP_SUMMARY
echo "### Files with bad formatting:" >>$GITHUB_STEP_SUMMARY
for file in $files; do
echo "- $file" >>$GITHUB_STEP_SUMMARY
echo "::error file=$file::File Not Formatted correctly"
echo "::error file=$file::$file Not Formatted correctly"
done
exit 1
fi

0 comments on commit 7f6c7f0

Please sign in to comment.