Skip to content

Commit

Permalink
Make the output a little nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr0grog committed Feb 21, 2025
1 parent e54e926 commit 220ed62
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/build-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,24 @@ jobs:
# merging or deploying changes.
continue-on-error: true
run: |
npm run test:intl-translations || echo "Error: ${?}" > ./failed
npm run test:intl-translations > output.txt \
|| echo "Error: ${?}" > ./failed
# Make sure you can see the output in the log!
cat output.txt
if [ -f ./failed ]; then
echo "⚠️ Translations: English and Spanish are mismatched." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "See *tranlsations* job logs for details." >> $GITHUB_STEP_SUMMARY
{
echo '⚠️ Translations: English and Spanish are mismatched.'
echo '<details><summary>Details:</summary>'
echo ''
cat output.txt
echo ''
echo '</details>'
} >> "${GITHUB_STEP_SUMMARY}"
exit 1
else
echo "✅ Translations: In good shape." >> $GITHUB_STEP_SUMMARY
echo '✅ Translations: In good shape.' >> "${GITHUB_STEP_SUMMARY}"
fi
Expand Down

0 comments on commit 220ed62

Please sign in to comment.