Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hwinther committed May 3, 2024
1 parent f9a1cce commit e49440c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/actions/frontend-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ runs:
[[ "${{ inputs.package_manager }}" == "yarn" ]] && yarn lint -f compact 1>lint.out 2>&1 || (exit 0)
echo -e "\nLint output:\n"
cat lint.out
ls -la
cat lint.out | grep ": line " | sed -e 's|${{ env.TRAILING_AGENT_WORK_PATH }}||' >lint.err
cat lint.out | grep ": line " | sed -e 's|${{ env.TRAILING_AGENT_WORK_PATH }}||' >lint.err || (exit 0)
if [ ! -s lint.err ]
then
echo "## ✅ ${{ env.WORKFLOW_SHORT_NAME }}: No linting issues 🎊" > lint.md
Expand All @@ -113,7 +112,7 @@ runs:
sed -i -e 's/^/- ❌ /' lint.md # prefix with markdown list item and cross mark emoji
echo "## ❌ The following linting issues should be fixed:" | cat - lint.md > lint.md.temp && mv lint.md.temp lint.md
fi
echo RESULT-SET
echo "result<<EOF"$'\n'"$(cat lint.md)"$'\n'EOF >> $GITHUB_OUTPUT
cat lint.md >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit e49440c

Please sign in to comment.