Skip to content

[mangodm-web] Week 08 Solutions #571

[mangodm-web] Week 08 Solutions

[mangodm-web] Week 08 Solutions #571

Workflow file for this run

name: πŸ”„ Integration
on:
pull_request:
jobs:
linelint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Find files missing end line break
run: |
files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
success=true
for file in $files; do
if [ -s "$file" ] && [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then
echo "- $file" >> $GITHUB_STEP_SUMMARY
success=false
fi
done
if [ "$success" = false ]; then
echo -e "\n:warning: μœ„ νŒŒμΌλ“€μ˜ 끝에 λˆ„λ½λœ 쀄 λ°”κΏˆμ„ μΆ”κ°€ν•΄ μ£Όμ„Έμš”." >> $GITHUB_STEP_SUMMARY
exit 1
fi